Causes
By 1800 the Spanish Empire in the Americas stretched from California to Chile, governed through viceroyalties such as Viceroyalty of New Spain and the Viceroyalty of Peru. Long-term grievances had been building. Eighteenth-century reforms by Spain's Bourbon kings raised taxes, tightened trade controls and reserved the highest offices for Peninsulares, officials born in Spain, at the expense of the American-born Creoles (Criollos) who dominated local landowning and commerce. Educated creoles read The Enlightenment authors and watched the American Revolution and French Revolution with interest. They also watched the Haitian Revolution and the Andean Rebellion of Túpac Amaru II with alarm, and feared that any upheaval might release the Indigenous, mixed-race and enslaved majorities ranked below them in the Casta System.
The trigger came from Europe. In 1807–1808 Napoleon Bonaparte invaded the Iberian Peninsula, forced the Spanish king to abdicate and installed his own brother. With the legitimate monarch a prisoner, creole town councils from Caracas to Buenos Aires formed governing juntas in 1810, at first in the king's name. Self-government, once tasted, hardened into demands for independence.
The wars
Northern South America. Simón Bolívar, a wealthy Caracas creole, fought a long and savage war against royalist forces. Defeated and exiled, he set out his analysis in the Letter from Jamaica (1815), obtained help from Haiti, and returned to win at Boyacá (1819) and Carabobo (1821), creating Gran Colombia.
The south. José de San Martín led an army from Argentina across the Andes in 1817, freed Chile and landed in Peru. After the two liberators met at Guayaquil in 1822, San Martín withdrew, and Bolívar's general Antonio José de Sucre won the final major battle at Ayacucho in December 1824.
Mexico. The Mexican War of Independence began in 1810 as a mass rising of Indigenous and mestizo peasants under the priest Miguel Hidalgo. Its social radicalism frightened creoles, who helped suppress it. Independence came in 1821 as a conservative reaction, when the royalist officer Agustín de Iturbide broke with a newly liberal government in Spain.
Brazil. The Portuguese court fled Napoleon to Rio de Janeiro in 1808. When the king returned to Lisbon, his son Pedro declared Brazilian Independence in 1822 and ruled as emperor, a comparatively low-violence transition, though Portuguese garrisons were fought until 1823-1824, that preserved monarchy and slavery.
Outcomes
By 1826 Spain held only Cuba and Puerto Rico in the Americas. The new states adopted republican constitutions and the language of 19th-Century Liberalism, and most abolished slavery within a few decades, in part because both sides had offered freedom to enslaved soldiers. But the social order changed little. Creole landowners replaced peninsular officials; Indigenous communities often lost protections; the Church kept its wealth. Bolívar's hopes for unity failed as Gran Colombia and other federations fragmented, and power in many countries fell to military strongmen, the Caudillos. Economically the region exchanged Spanish mercantilism for dependence on British capital and trade, becoming a set of Resource Export Economies. The United States warned Europe against reconquest in the Monroe Doctrine of 1823.
Comparisons
Like the American Revolution, these were colonial elites' wars for home rule that kept existing hierarchies, yet the United States federated while Spanish America splintered. Against Haiti the contrast is sharper: revolution from above rather than from below. The limits of 1810–1826 left land and inequality unresolved, questions that returned in the Mexican Revolution a century later.