Mexico gains independence from Spain
Illustration: History Harbor

Published October 29, 2026

In brief

  • Mexico became independent from Spain on September 27, 1821, ending over 300 years of colonial rule.
  • The struggle began in 1810 with Father Miguel Hidalgo's Grito de Dolores and lasted more than a decade.
  • Iturbide, a former royalist, and Guerrero formed the Plan of Iguala, which united factions and led to the Treaty of Córdoba.
  • Independence created a sovereign nation and influenced Latin American independence movements.

Father Miguel Hidalgo began Mexico’s fight against Spain in 1810 with a call to arms known as the “Grito de Dolores.” On September 27, 1821, Mexico became independent, and more than 300 years of Spanish colonial rule came to an end.

More than a decade of conflict

Hidalgo’s call started the independence struggle, and the fighting that followed lasted more than ten years. Leadership shifted during that time, and so did the alliances among those involved.

The final push came from Agustín de Iturbide, who had been a royalist. He joined forces with Vicente Guerrero, a leader of the independence movement. Together they formed the Plan of Iguala.

The Plan of Iguala and the Treaty of Córdoba

The plan set out three goals: a constitutional monarchy, Catholicism as the state religion, and equality for all Mexicans. Its terms brought various factions together, and that alliance drove the last stage of the struggle.

The plan led to the Treaty of Córdoba, signed on August 24, 1821, which formally recognized Mexican independence. Mexico’s independence took effect on September 27.

A sovereign neighbor

The outcome was a sovereign Mexican nation. Its independence reshaped the geopolitical landscape of the Americas and influenced independence movements throughout Latin America.

For the United States, Mexico became a significant neighbor. Two years earlier, in the Adams-Onís Treaty, Spain had given Florida to the United States and the two countries had settled their disputes over territory. With Spain’s rule in Mexico gone, the United States now shared a border region with a new country. The way that territory was divided would shape future relations between the two nations. Their relationship later included the Mexican-American War, which began in 1846.

Causes and consequences

  1. Hidalgo's 1810 Grito de Dolores Start of the Mexican independence struggle
  2. Alliance of Iturbide and Guerrero and the Plan of Iguala Unified factions and the final push for independence
  3. The Plan of Iguala Signing of the Treaty of Córdoba recognizing independence
  4. Mexican independence Influence on independence movements across Latin America

Why it matters

Independence created a sovereign Mexican nation and changed the geopolitical map of the Americas. It influenced independence movements elsewhere in Latin America. It also gave the United States a significant neighbor whose territorial dynamics would shape later relations.

Report a mistake

What is wrong on this page? We will check and correct the text.