Jesus chose the 12 apostles. The apostles choose a leader in each new area they preached. This person became the bishop. Peter was the leader of the bishops (the first Pope). Since Puter's death there has been an unbroken succession. The Pope and the bishops form the Magisterium