Gran Colombia–Peru War was the kernel of Bolívar's grander scheme to unite the former Spanish colonies in Central and South America. Prior to becoming the titular head of Gran Colombia, Bolívar had been, briefly, the president of the newly independent state of Bolivia, his namesake. Bolivia had formerly been a part of the Viceroyalty of the "Rio de La Plata", known as Upper Peru, and, once Bolívar relinquished the presidency of Bolivia to his revolutionary compatriot, Antonio José de Sucre Alcalá, in 1826, the Peruvians saw an opportunity. Early in 1828, Peru launched a campaign against Bolivia to reclaim its former territory and
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