President of Peru Martín), and "Supreme Protector" (by Andrés de Santa Cruz). The following table contains a list of the individuals who have served as President of Peru. The Protectorate of Peru existed from August 3, 1821 until September 20, 1822. The Republic of Peru was declared on July 28, 1821 but it was constituted on September 20, 1822. It existed until August 11, 1836. In 1836, the south of the country declared itself independent by creating the Republic of South Peru, while the north of the country became the Republic of North Peru. The two states confederated with the Republic of Bolivia
First Upper Peru campaign bulk of the royalist forces, while the center was hit by the soldiers of Pio Tristan. Many patriotic soldiers recruited at the Upper Peru surrendered or fled, and many of the recruits in La Paz switched sides during the battle. The Saavedrist Juan José Viamonte was instrumental in the defeat, by refusing to join the conflict. Although the casualties of the Army of the North were not substantial, it was left desmoralized and disbanded. The inhabitants of Upper Peru left them and welcomed the royalists back, so the army had to quickly leave those provinces. However, the resistance of Cochabamba