The U.S. Border Patrol is a law enforcement agency that patrols the U.S. border with Mexico. The Border Patrol has 22 field offices in the U.S. and three in Canada. The Border Patrol is a federal law enforcement agency under the jurisdiction of the Department of Homeland Security. The Border Patrol is divided into two branches: the Border Patrol Service and the U.S. Customs and Border Protection. The Border Patrol Service is the primary law enforcement agency on the U.S. border with Mexico. The U.S. Customs and Border Protection is responsible for the interior of the United States, including the detention and examination of people and goods at United States.