Peru Antonio José de Sucre they defeated the larger Spanish army in the Battle of Junín on 6 August 1824 and the decisive Battle of Ayacucho on 9 December of the same year, consolidating the independence of Peru and Alto Peru. Alto Peru was later established as Bolivia. During the early years of the Republic, endemic struggles for power between military leaders caused political instability. From the 1840s to the 1860s, Peru enjoyed a period of stability under the presidency of Ramón Castilla, through increased state revenues from guano exports. However, by the 1870s, these resources had been depleted, the country
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