Peru–Bolivian Confederation Felipe Salaverry, who rebelled and overthrew him in 1835. Orbegoso, however, did not lose the support of southern Peru and called in to his help the president of Bolivia. It was the opportunity that Marshal Santa Cruz, himself a former president of Peru, was waiting for. The Bolivian army promptly proceeded to invade Peru. With Bolivian help, General Orbegoso quickly regained his leadership throughout the country and had Salaverry executed. As a reward for the support he had received from Santa Cruz, he agreed to the formation of the new Peru–Bolivian Confederation. Santa Cruz assumed the "supreme protectorship" of the
Protectorate of Peru brigadier Mateo Pumacahua, who was curaca of Chinchero, and decades earlier had been instrumental in suppressing the rebellion of Túpac Amaru II. Pumacahua joined the Criollo leaders in forming a junta on August 3 in Cuzco, which demanded the complete implementation of the liberal reforms of the Spanish Constitution of 1812. After some victories in southern Peru and Upper Peru, the rebellion was squashed by mid-1815 when a combined strength of royal forces and loyal curacas, among which were the Catacora and Apo Cari took Cuzco and executed Pumacahua. After the squashing of the aforementioned rebellion, the Viceroy of Peru