The duties of the U.S. Marshals Service include protecting the federal judiciary, apprehending federal fugitives, managing and selling seized assets acquired by criminals through illegal activities, housing and transporting federal prisoners and operating the Witness Security Program.
https://www.usmarshals.gov/duties/factsheets/overview.pdf
The US Marshal Service is not responsible for protecting the President - The Secret Service is.