The United States Customs Service was the very first federal law enforcement agency of the U.S. federal government. Established on July 31, 1789, it collected import tariffs, performed other selected border security duties, as well as conducted criminal investigations.