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 this, Peru remained strongly royalist and participated in the political reforms implemented by the Cádiz Cortes (1810–1814), despite Abascal's resistance. Peru was represented at the first session of the Cortes by seven deputies and local cabildos (representative bodies) became elected. Therefore, Peru became the second to last redoubt of the Spanish Monarchy in South America, after Upper Peru. Peru eventually succumbed to patriot armies after the decisive continental campaigns of José de San Martín (1820–1823) and Simón Bolívar (1823–1825). Some of the early Spanish conquistadors that explored Peru made the first attempts for independence from the Spanish crown. They tried