answer: The office of U.S. Marshal is the oldest federal law enforcement office in the United States though second to the U.S. Customs Service as the oldest federal agency (July 1789); it was created by the Judiciary Act of 1789 .