Peruvian War of Independence

Peruvian War of Independence
Part of the Spanish American Wars of Independence

Clockwise, left to right: José de San Martín's landing in Paracas, the declaration of independence in Lima, the Battle of Camino Real in Ecuador, the Battle of Junín, and the Battle of Ayacucho.
Date1809–1827
(18 years)
Location
Result
  • Patriot victory
Territorial
changes
  • The General Command of Maynas is annexed by the patriots in 1823.
  • Callao, occupied by Gran Colombia, is returned to Peru in 1827.
  • Iquicha is annexed de facto in 1828.
  • General recognition by Spain of continental Spanish America's independence in 1836.
  • Signing of a bilateral treaty between Spain and Peru: the Treaty of Paris of 1879.
Belligerents
Patriot forces:
  • Peruvian rebels (1809–1820)

Royalists:
Commanders and leaders
Units involved
Casualties and losses
In total, 175,000–250,000 deaths
100,000–150,000 Royalists captured and expelled

The Peruvian War of Independence (Spanish: Guerra de Independencia del Perú) was a series of military conflicts in Peru from 1809 to 1826. Part of the broader Spanish American wars of independence, it led to the dissolution of the Spanish Viceroyalty of Peru and the emergence of Peru as an independent state on 28 July 1821. The Battle of Ayacucho in 1824 secured the independence of Peru and definitively ended Spanish rule in South America. However, Peru achieved full sovereignty only after the end of Simon Bolívar's influence and the Gran Colombian military occupation. His Federation of the Andes project was discarded and the last Gran Colombian garrison returned the Real Felipe Fortress to the Peruvians on 16 February 1827.

Throughout the colonial period of Peru, there were several social uprisings, though none constituted a true independence movement. The Rebellion of Túpac Amaru II, although not the first or the last, was the most significant and culminated in violent repression by the viceregal authorities. This uprising erupted in response to the Bourbon Reforms and was the first time that viceregal documents used the term "insurgents." It was also a movement that proclaimed the abolition of slavery in Peru. However, there is debate as to whether the purpose of this rebellion was truly independence or a revolution of the viceregal social order.

The Atlantic liberal revolutions transformed the political map of both America and Europe. French Emperor Napoleon Bonaparte's 1808 invasion of Spain resulted in the abdications of Charles IV and Ferdinand VII in favour of Joseph Bonaparte. In Spanish America, autonomous governments arose in the power vacuum and instability of mainland Spain in Europe. Initially, Peru was a stronghold for royalists, with Viceroy José Fernando de Abascal y Sousa using Peru as a base for counterrevolutionary forces.

In 1820, the Liberating Expedition of Peru, under the command of Argentine general José de San Martín, forced the viceroyalty to abandon Lima and retreat to Cusco. However, disagreements between San Martín and Simón Bolívar at the Guayaquil Conference over how to govern divided patriot forces and led to San Martín's withdrawal in 1822. Fighting continued under Bolivar until the decisive defeat of the Spanish Army in 1824, followed by the surrender of the last major Spanish stronghold at Callao in 1826.