Mexico won its independence from Spain in 1821, when the Treaty of Córdoba was signed on August 24 and the Spanish viceroy, Juan O'Donojú, recognized Mexican sovereignty. Most historians date the independence war from the Cry of Dolores on September 16, 1810, which means Mexico's break from Spain took 11 years to complete. Spain did not formally recognize the loss until 1836.
The legal mechanism: a treaty, not a battlefield surrender
Mexico's independence was not won by a single decisive battle. It was produced by a legal instrument signed in the town of Córdoba, Veracruz, on August 24, 1821. The treaty's signatories were Agustín de Iturbide, commander of the Army of the Three Guarantees, and Juan O'Donojú, the last Spanish viceroy sent to New Spain.
The treaty declared Mexico an independent empire and offered the crown to Ferdinand VII or another Bourbon prince. If no acceptable European monarch accepted, the document allowed a Mexican congress to choose its own ruler. That clause mattered enormously, because it converted a rebel victory into a formal transfer of authority from one government to another.
O'Donojú's authority was the weak link. He had arrived in New Spain in July 1821 with orders to negotiate, but the Spanish crown later refused to ratify his signature. The treaty therefore functioned as the founding political document inside Mexico while remaining a contested instrument in Madrid. This gap explains why independence dates differ depending on which government is doing the dating.
The 11-year time course: from 1810 to formal Spanish recognition
The independence war runs through three phases: an insurgency dominated by parish priests, a period of scattered guerrilla resistance, and a final royalist-to-rebel reversal led by a former Spanish officer. The timeline below tracks the dates that matter most.
| Year | Event | Significance |
|---|---|---|
| 1810 | Cry of Dolores, September 16 | Miguel Hidalgo launches the insurgency; most histories begin the war here |
| 1811 | Hidalgo captured and executed, July 30 | Leadership passes to José María Morelos; the movement loses its central figure |
| 1813 | Congress of Chilpancingo, November 6 | Morelos declares independence formally in the Sentimientos de la Nación |
| 1815 | Morelos captured and executed, December 22 | Insurgency collapses into regional guerrilla bands |
| 1820 | Liberal revolution in Spain, March | Spanish constitutional change alarms Mexican conservatives and elites |
| 1821 | Plan of Iguala, February 24 | Iturbide unites royalists and rebels under three guarantees |
| 1821 | Treaty of Córdoba, August 24 | O'Donojú recognizes Mexican independence |
| 1821 | Entry into Mexico City, September 27 | Independence is consummated; the Army of the Three Guarantees takes the capital |
| 1836 | Spanish recognition | Spain formally abandons its claim in a treaty, 15 years after Córdoba |
The counterintuitive detail sits in the 1820 row. Mexico's independence was accelerated, not delayed, by a liberal revolution in Spain. When Spanish liberals restored the Constitution of 1812, they threatened the privileges of the Catholic Church and the colonial elite in New Spain. That fear pushed conservative royalists, including Iturbide, into the rebel camp. Independence therefore succeeded when it stopped being a purely radical project and became a coalition of the frightened.
Why the first uprising failed and the last one worked
Hidalgo's revolt began with 100,000 or more followers within weeks, according to the standard figures historians cite, but it had no trained officer corps and no clear political program. The movement was crushed at Calderón Bridge in January 1811, and Hidalgo was executed months later.
Morelos built a more disciplined army and a formal political program, including the 1813 declaration of independence. He was defeated by a royalist officer named Félix María Calleja, then captured and executed in 1815. The royalist army that defeated the insurgents was led by men born in Mexico, not Spain, which reveals the war's internal character.
The decisive reversal was organizational. Iturbide had commanded royalist troops against the insurgents and knew the terrain and the officers. When he switched sides in 1821, he brought a professional army, elite financing, and the Church's indirect support. Independence succeeded because it acquired the resources of the state it was fighting.
Which date counts as the answer: five thresholds, reconciled
Mexico's independence has at least five defensible dates, and they measure different things. Separating them prevents the common argument in which two people cite two dates and both are right.
| Threshold | Date | What it marks |
|---|---|---|
| First call to arms | September 16, 1810 | Hidalgo's Cry of Dolores; Mexico's official independence day |
| Formal declaration | November 6, 1813 | Congress of Chilpancingo declares independence |
| Political plan | February 24, 1821 | Plan of Iguala sets the three guarantees |
| Treaties and consummation | August 24 and September 27, 1821 | Córdoba signed; independence army enters Mexico City |
| Diplomatic recognition | December 28, 1836 | Spain signs a treaty recognizing Mexican independence |
The cleanest short answer for a general question is 1821. The cleanest answer for the question of when the war began is 1810. The cleanest answer for the question of when Spain accepted the outcome is 1836. The 1813 date is a declaration, not a victory, and should be described that way.
A second myth involves the date itself. September 16 is celebrated as Mexican Independence Day, but it marks the start of the war, not the end. The actual consummation happened on September 27, 1821, which is rarely the date people expect.
A third misconception treats independence as a single national uprising. In practice, regions declared and were reconquered at different times. Texas, for example, saw insurgent activity from 1811 onward, while parts of southern Mexico remained royalist longer. The 1821 outcome was a national settlement layered over a decade of uneven local warfare.
After 1821: empire, republic, and a throne that did not last
The Treaty of Córdoba envisioned a constitutional monarchy. No acceptable European prince took the offer, so Iturbide had himself crowned emperor in 1822 as Agustín I. His empire lasted less than a year. A republican revolt forced his abdication in March 1823, and a federal republic was established in 1824.
Iturbide was executed when he returned to Mexico in 1824. The political instability that followed, including dozens of changes of government in the first half of the nineteenth century, made the 1821 settlement fragile in practice. Independence transferred sovereignty but did not create a durable state.
Spain's refusal to ratify Córdoba mattered diplomatically long after the shooting stopped. Madrid continued to treat Mexico as a rebellious colony and did not sign a recognition treaty until 1836. Even then, Spain's recognition of Mexican independence came with no restoration of royal authority. The fifteen-year gap between 1821 and 1836 is why the question of when independence was actually won has a legal answer and a political answer.
How to use these dates in a source or classroom
If you are writing about Mexican independence, the actions below prevent the most common errors.
State the 1821 date and the September 16, 1810 start date together, so the answer covers both "when did independence happen" and "when did the war begin." Use "consummated" for September 27, 1821, and "formal recognition" for 1836; never use the same verb for all three. Distinguish the Treaty of Córdoba from the Plan of Iguala, because the first is the legal instrument and the second is the political program. Attribute the 1813 declaration to the Congress of Chilpancingo rather than to a battlefield victory. Treat September 16 as the start of the struggle, not the date of victory.
For teaching, the threshold table works better than a single date because it shows students that historical periodization is a choice. For research, cite the treaty text and the recognition treaty separately, since they are held by different archives.
What these dates cannot settle
Several claims about Mexican independence go beyond what the evidence supports. The size of Hidalgo's army, the exact number of deaths in the war, and the degree of popular support in different regions are all debated. Figures such as 100,000 followers are estimates from contemporary accounts, not censuses.
The number of years the war lasted also depends on the start date you choose. Counting from 1810 gives 11 years to 1821. Counting from the 1808 political crisis in New Spain gives 13. Counting to Spanish recognition in 1836 gives 26. None of these is wrong, but each answers a different question.
The most careful formulation names the event and the date together: independence was consummated in 1821, the war began in 1810, and Spain recognized the result in 1836. That three-part answer outlasts any single-year claim, because it maps to the actual sequence of mechanism, outcome, and acceptance.