You have different levels of witness protection, but I assume you are talking about the most advanced, which would be WITSEC run by the Department of Justice and the US Marshals service.
Before the person testifies, USMS would be responsible for protecting the person and in coordinating with the local police agencies, would be responsible for getting them to and from trial to testify.
[Read more…] about How Does The Witness Protection Program Work?