Mexico effectively gained independence from Spain on September 27, 1821, when the Army of the Three Guarantees entered Mexico City and the last Spanish viceroy, Juan O'Donojú, had already signed the Treaty of Córdoba on August 24, 1821. Mexicans formally celebrate September 16, 1810, the night Miguel Hidalgo raised his parishioners in Dolores. The 11-year gap between those dates is where the real story lives.

The Mechanism: A Collapsing Empire, Not a Single Battle

Independence was not won by one army defeating another. It resulted from three converging pressures that made Spanish rule untenable.

First, the Napoleonic shock decapitated royal authority. In 1808, Napoleon forced Ferdinand VII to abdicate and placed his brother Joseph on the Spanish throne. Legitimacy in New Spain suddenly had no anchor. Elites who had obeyed a king for three centuries now had to decide who held sovereignty. Juntas formed in Spain to govern in Ferdinand's name; the question of whether colonial subjects held equal standing in that new arrangement triggered the 1810 uprising.

Second, the insurgency evolved from a social revolt into a negotiated elite settlement. Hidalgo's 1810 movement was a mass uprising of peasants, miners, and Indigenous communities that terrified creole landowners. After Hidalgo's execution in 1811 and that of his successor José María Morelos in 1815, the insurgency fractured into guerrilla resistance. The decisive turn came in 1820, when a liberal revolution in Spain forced Ferdinand VII to restore the Constitution of Cádiz. Mexican conservatives who had fought the insurgents now feared the constitution more than independence.

Third, a royalist officer switched sides. Agustín de Iturbide, who had spent years hunting insurgents, allied with guerrilla leader Vicente Guerrero in February 1821 under the Plan of Iguala. Its three guarantees were independence, equality between Spaniards and Americans, and protection of the Catholic Church. That formula assembled the coalition the insurgency had never managed: church, army, landowners, and former rebels.

Plainly: Mexico became independent because the people who had defended Spain concluded that a liberal Spain was worse than a separate Mexico.

The Timeline That Matters

Date Event Why it matters
September 16, 1810 Hidalgo's Grito de Dolores Start of the armed insurgency; now the national holiday
July 30, 1811 Hidalgo executed First phase collapses into guerrilla war
December 22, 1815 Morelos executed Insurgency at its lowest ebb
February 24, 1821 Plan of Iguala Conservative-military-rebel coalition formed
August 24, 1821 Treaty of Córdoba O'Donojú recognizes Mexican independence
September 27, 1821 Army enters Mexico City Effective end of Spanish rule
September 28, 1821 Act of Independence signed Founding document of the new nation
1823–1824 Empire falls; republic declared Iturbide ousted within two years

The span from Hidalgo's cry to the entry into the capital is 4,029 days, roughly 11 years and 11 days.

Quantified Context: The Cost Was Enormous

Estimates of Mexican deaths during the war range from roughly 250,000 to 500,000, out of a population near 6 million in 1810. That is a mortality of about 4 to 8 percent of the entire population, and historians generally place the upper end higher in specific regions. Mining output, the colony's economic engine, collapsed: silver production in key districts fell by more than half between 1810 and 1820, and some estimates put national mining at roughly a quarter of prewar levels by the war's end.

The war also destroyed the capital stock. Haciendas were burned, mules and cattle seized, and the road network between Veracruz and Mexico City became unsafe for years. Spain's loss was not just territory. By 1821, the Spanish crown had spent more than a decade financing a counterinsurgency across an ocean, and its treasury was exhausted; Spain itself was in political crisis.

For comparison, the United States spent about eight years from the first shots at Lexington to the Treaty of Paris, and its population was smaller and less integrated into the imperial economy. Mexico's war was longer and, in proportional mortality, bloodier.

A Comparison: How Spanish America Left

Colony Independence declared Effective break Path
Mexico 1810 (insurgency); 1821 (settlement) 1821 Social revolt absorbed by conservative elite pact
Argentina 1816 1816–1818 Urban junta, military campaigns
Chile 1818 1818 Military campaign from Argentina
Colombia 1810–1819 1819 Bolívar's liberation army
Peru 1821 1821–1824 Invaded from outside; royalist stronghold
Cuba 1895 1898 Late break, tied to US intervention

The pattern: Mexico's transition was uniquely a counterrevolution that became a revolution. Everywhere else, patriots fought royalists. In Mexico, the leading patriot in 1821 had been the crown's best counterinsurgent.

Edge Cases and Contested Dates

Which date is "the" independence date depends on what you are measuring. September 16 marks the start of the struggle and is the civic holiday. September 27 marks effective control of the capital and is the date many historians treat as the consummation. The Treaty of Córdoba's legal force is itself contested: the Spanish government repudiated it in 1822, arguing O'Donojú lacked authority to sign it, and Spain did not formally recognize Mexican independence until the 1836 Treaty of Santa María–Calatrava.

There is also the question of whether independence was real or merely nominal. Spain attempted reconquest in 1829 at Tampico and was repulsed. Mexico's first decades saw more than 40 changes of government and foreign interventions, so political independence did not translate into stable sovereignty.

One counterintuitive caveat: the Act of Independence was signed on September 28, 1821, one day after the army entered the capital. The document that supposedly founded the nation came after the event it memorializes.

Misconceptions Worth Killing

The most durable myth is that Mexicans threw off a foreign yoke in a unified national uprising. In reality, the insurgency was defeated militarily by 1816, and independence came through a deal among elites who had opposed it.

A second misconception is that September 16, 1810, was a declaration of independence. Hidalgo's Grito called for rebellion against bad government and defense of religion; it did not formally declare separation from Spain. That ambiguity mattered: it let moderates join.

A third is that Spain simply gave up. Spain refused to recognize independence for 15 years and attempted reconquest. The legal break had to be ratified by a treaty in 1836.

Practical Actions for Readers Verifying the Claim

Check the primary documents: the Plan of Iguala (February 24, 1821) and the Treaty of Córdoba (August 24, 1821) are both translated in standard documentary collections. Distinguish civic holiday dates from legal effective dates before citing a specific day. Note that "recognition" and "independence" are separate events; the 1836 treaty is the recognition date. When a source says "1821," confirm whether it means the treaty, the capital's fall, or the Act of Independence. Treat mortality and output figures as ranges, not point estimates; the archival base is uneven.

Limitations and What Remains Uncertain

Casualty figures are reconstructions from incomplete parish and fiscal records, so the 250,000–500,000 range is a scholarly estimate, not a census. Economic data on mining come from tax and mint records that undercount contraband silver. The precise legal status of the Treaty of Córdoba remains debated among historians of international law. This article is general educational information about historical events, not a legal opinion on sovereignty or treaty validity; for legal questions about recognition or nationality, consult a qualified professional.