Age of Nationalism // 1821-1824
Peruvian War of Independence
The Peruvian War of Independence was a series of military conflicts in Peru from 1809 to 1826 that resulted in the country's independence from the Spanish Empire. Part of the broader Spanish American wars of independence, it led to the dissolution of the Spanish Viceroyalty of Peru.
Tactical Map#
1 battles plotted
LOADING MAP TELEMETRY…
War Tempo#
Battle cadence by year
Battles per year
3 battles
Causes#
The formal declaration of Peruvian independence on 28 July 1821 by José de San Martín marked a political rupture whose structural roots stretched back decades before the first insurgent movements of 1809. The proximate trigger was the collapse of the Spanish monarchy following Napoleon's invasion of the Iberian Peninsula in 1808 and the forced abdication of the Bourbon dynasty — an event that shattered the legitimacy of colonial authority across Spanish America and opened a prolonged constitutional crisis that viceregal administrators in Lima proved unable to resolve [1].
The deeper fiscal and administrative causes were embedded in the Bourbon reform program of the late eighteenth century. Madrid's effort to rationalize imperial revenues, tighten commercial regulations, and reassert metropolitan control over colonial offices displaced creole elites from positions of local authority they had long occupied and disrupted the informal accommodations that had made colonial governance workable. In Peru, these pressures intersected with an already volatile social landscape shaped by stark inequalities between the Spanish-born peninsulares, American-born creoles, indigenous communities, and the mixed-race castas [2]. The fiscal intensification that accompanied the reforms — new taxes, tightened tribute collection, and disrupted trade routes — fell unevenly across these groups and eroded the social compact that had contained discontent.
Indigenous grievances supplied an older and more combustible layer of causation. The great rebellion led by Túpac Amaru II in 1780–1781, centered in the southern highlands around Cuzco, had demonstrated both the depth of indigenous resentment toward colonial extraction and the limits of creole willingness to embrace a multiracial insurgency [3]. Colonial authorities suppressed that rebellion with considerable violence, but the social tensions it expressed persisted. The memory of Túpac Amaru shaped creole political calculations well into the independence era, making Peruvian elites in Lima distinctly cautious about mass mobilization and more reliant on outside liberating armies than their counterparts elsewhere in South America [4].
Geopolitically, Peru occupied a peculiar position within the independence movement. As the wealthiest and most strategically significant viceroyalty, it served as Spain's principal military base in South America and harbored a royalist elite with more to lose from independence than creoles in Buenos Aires or Caracas. The independence process consequently depended heavily on external military intervention — San Martín's Army of the Andes arriving from the south in 1820 and Simón Bolívar's forces entering from the north after 1823 — rather than a sustained internal uprising. Decisive confrontations such as the Battle of Zepita in 1823 and the Battle of Corpahuaico in 1824 reflected this character of the conflict: a war resolved primarily by professional armies operating across a theater that encompassed the entire Andean highland zone [5].
The ideological dimensions of the independence movement drew on Enlightenment constitutionalism circulating through the Atlantic world, but these ideas reached Peru unevenly and were filtered through local social hierarchies. Creole patriots framed their cause in the language of natural rights and legitimate self-government, yet the movement's leadership remained overwhelmingly elite in composition and largely resistant to redistributive demands from indigenous and popular constituencies [1]. The result was an independence project that dismantled the formal structure of colonial rule while leaving intact many of the social arrangements — landholding patterns, tributary labor obligations, racial stratification — that had sustained it.
Consequences#
The formal dissolution of Spanish imperial authority in Peru unfolded in stages rather than through a single peace instrument. José de San Martín's proclamation of independence at Lima in July 1821 established the republic in name, but Spanish royalist forces retained control of the interior highlands for another three years. It was only after Corpahuaico and, decisively, the battles of Junín and Ayacucho in 1824 that the last significant royalist army in South America capitulated, ending three centuries of Bourbon and Habsburg rule over the Viceroyalty of Peru[1]. The royalist garrison at Callao held out until 1826, making Peru one of the last continental territories to pass entirely out of Spanish hands.
The political settlement that emerged was considerably more fragile than independence rhetoric had promised. San Martín's departure and Simón Bolívar's subsequent intervention produced a republic whose constitutional foundations were contested from the outset. The Bolivarian constitution of 1826 — imposing a lifetime presidency — was rejected within months, inaugurating a cycle of military coups and caudillo rule that would define Peruvian politics for much of the nineteenth century[2]. The creole elite that inherited the colonial administrative apparatus proved reluctant to dismantle the social hierarchies underwriting it; the fiscal and bureaucratic machinery of the viceroyalty was appropriated rather than reformed.
The consequences for the Andean interior diverged sharply from Lima's republican triumphalism. In the Cuzco region and the southern highlands, independence resolved none of the structural grievances that had energized earlier insurrections, including the massive Túpac Amaru II rebellion of 1780–1781[3]. Indigenous communities continued to bear the burden of labor obligations and tribute — formally abolished but inconsistently enforced — while the great highland landowners, the hacendados, consolidated their position in the absence of effective central authority. The wars themselves had brought epidemic-scale disruption to agrarian economies that were slow to recover[4].
The geopolitical consequences extended across the continent. The destruction of the Viceroyalty of Peru removed the institutional framework that had governed Upper Peru (modern Bolivia), which became a separate republic in 1825, and accelerated the fragmentation of Gran Colombia to the north. Peru and the successor states immediately inherited unresolved boundary disputes that the colonial administrative geography had only papered over; border conflicts with Bolivia, Chile, and Ecuador persisted into the twentieth century. The war also left Peru financially exhausted, heavily indebted to British creditors who had financed republican campaigns, a dependency that shaped the republic's economic sovereignty for decades[1].
Women's contributions to the independence struggle — as suppliers, informants, and combatants in the popular montonera guerrilla bands — were substantial, but the republic they helped create excluded them from formal political participation[5]. Racial classifications inherited from the colonial caste system persisted within republican law. What independence fundamentally achieved was the transfer of sovereignty from a metropolitan crown to a domestic propertied class; the social contract binding the Andean majority to the new state remained largely unwritten and unenforced, a deferred question that Peruvian politics would revisit with varying urgency throughout the following century[6].
Campaigns#
0 operational sequences
Battles#
3 catalogued engagements
- Battle of Riobamba
April 21, 1822
- Battle of Zepita
August 25, 1823
The Battle of Zepita, fought between Santa Cruz's patriot force of 1,600 and Valdés's royalist army of 1,800 during the Peruvian War of Independence, resulted in a material gain for the patriot cause. Santa Cruz's army captured 240 rifles, 240 lances, 52 saddles, and 63 sabers from the royalist forces, a direct reduction of Viceregal military capacity and a corresponding boost to patriot supply. The engagement took place at a critical juncture in the independence struggle, with royalist forces still contesting control of Peru two years after independence was declared.
- Battle of Corpahuaico
December 3, 1824
The Battle of Corpahuaico was fought in 1824 in the Andean highlands of Ayacucho, Peru, as part of the closing stages of the Peruvian War of Independence. By this point, the Royalist forces engaged here under Jerónimo Valdés and José de la Serna represented one of the few remaining Royalist armies still active in South America. The engagement took place within the broader Ayacucho campaign, in which Patriot commanders Antonio de Sucre and Jacinto Lara were working to eliminate organized Royalist resistance in the highlands. Patriot casualties are recorded at between 200 and 700. The battle occurred days before the decisive engagement that would effectively end Spanish imperial authority on the continent, placing Corpahuaico within the final sequence of operations that collapsed Royalist military power in Peru.
Famous commanders of Peruvian War of Independence
5 shown
Andrés de Santa Cruz
marshal1792–1865
1 battle ledΣ24 int
Jerónimo Valdés
teniente general1784–1855
2 battles ledΣ24 int
Antonio de Sucre
marshal1795–1830
1 battle led
Jacinto Lara
1777–1859
1 battle led
José de la Serna
captain general1770–1832
1 battle led
Ranked by Σ battle intensity across battles led in scope. Strategic leaders (chiefs of state / supreme commanders) pinned to the top.
Other wars in this era
Age of Nationalism
WAR· 1816-1820
Portuguese Conquest of the Banda Oriental
The Portuguese conquest of the Banda Oriental was the armed-conflict that took place between 1816 and 1820 in the Banda Oriental, for control of what today comprises the whole of the Republic of Uruguay, the northern part of the Argentine Mesopotamia and southern Brazil. The four-year armed-conflict resulted in the annexation of the Banda Oriental into the United Kingdom of Portugal, Brazil and the Algarves as the Brazilian province of Cisplatina.
WAR· 1816-1858
Seminole Wars
The Seminole Wars were a series of three military conflicts between the United States and the Seminoles that took place in Florida between about 1816 and 1858. The Seminoles are a Native American nation which coalesced in northern Florida during the early 1700s, when the territory was still a Spanish colonial possession. Tensions grew between the Seminoles and American settlers in the newly independent United States in the early 1800s, mainly because enslaved people regularly fled from Georgia into Spanish Florida, prompting slaveowners to conduct slave raids across the border. What began as small cross-border skirmishes became the First Seminole War, as Andrew Jackson led U.S. forces into Florida—despite Spanish objections—to pursue the Seminoles. Jackson's forces destroyed several Seminole, Mikasuki and Black Seminole towns, as well as captured San Marcos de Apalache and briefly occupied Pensacola before withdrawing in 1818. In 1819 the U.S. and Spain agreed to transfer Florida in the Adams–Onís Treaty.
WAR· 1817-1818
Third Anglo-Maratha War
The Third Anglo-Maratha War (1817–1819) was the final and decisive conflict between Britain and the Maratha Empire. The war left the Company in control of most of India. It began with an invasion of Maratha territory by British East India Company troops, and although the British were outnumbered, the Maratha army was decimated. The troops were led by Governor General Hastings, supported by a force under General Thomas Hislop. Operations began against the Pindaris, a band of local mercenaries and Marathas from central India.
WAR· 1820-1832
Black War
The Black War was a period of violent conflict between British colonists and Aboriginal Tasmanians in Tasmania from the mid-1820s to 1832 which precipitated the near-extermination of the Indigenous population. The conflict was fought largely as a guerrilla war by both sides; some 600 to 900 Aboriginal people and more than 200 British colonists died.