The Border Gateway Protocol (BGP) is the main routing protocol of the Internet. It decides how data gets from one place to another on the Internet. It was made to get rid of the EGP routing protocol to make the Internet more independent.