24 August 1821 · 205 years ago

Mexican Independence achieved with the Treaty of Cordoba

Mexican Independence achieved with the Treaty of Cordoba
Illustration: History Harbor

Published November 5, 2026

In brief

  • On August 24, 1821, Agustín de Iturbide and viceroy Juan de O'Donojú signed the Treaty of Córdoba.
  • The treaty formally made Mexico independent from Spain and ended the war of independence.
  • The war began in 1810 with Miguel Hidalgo's Grito de Dolores and lasted about ten years.
  • Iturbide's monarchy was short-lived; he was overthrown in 1823, and Mexico became a republic.

On August 24, 1821, two men signed an agreement in Córdoba, then part of a Spanish colony. One was Agustín de Iturbide, who represented Mexico’s insurgent movement. The other was Juan de O’Donojú, the Spanish viceroy. Their Treaty of Córdoba formally established Mexico’s independence from Spain and ended the Mexican War of Independence.

A decade of fighting since the Grito de Dolores

The war had started in 1810, when Miguel Hidalgo called Mexicans to arms. His call became known as the Grito de Dolores. For about ten years afterward, insurgents fought Spanish colonial forces. Several revolutionary leaders emerged in that time. José María Morelos was one of them. Iturbide was another, and in 1821 he was the one who negotiated for the movement.

Mexico’s war was part of the wider Latin American Wars of Independence, a series of revolutionary wars fought from roughly 1810 through the 1820s. During those wars, the colonies of Spain and Portugal sought to become independent, sovereign nations. Earlier, in 1804, Haiti declared its independence from France, ending the Haitian Revolution.

Why Spain chose to negotiate

By the time of the treaty, Spain’s control over its colonies was weakening. For that reason, Spain sent O’Donojú to Mexico to negotiate the terms of its independence. He signed the treaty as viceroy, and Iturbide signed on behalf of the insurgents. The agreement therefore came from both sides: a long armed struggle by the insurgents, and a colonial power whose hold had grown weaker.

What the treaty settled

The Treaty of Córdoba confirmed the terms of Mexico’s independence. With it, Spanish rule over Mexico formally ended, and so did the war that Hidalgo had started more than a decade earlier. The treaty also stated that the Mexican people would govern themselves, with no interference from Spain.

The signing at Córdoba was one step in the process by which Mexico gained independence from Spain in 1821. That process ended more than 300 years of Spanish colonial rule.

Mexico’s first government after independence did not last. Iturbide became the country’s monarch, but his rule was short. He was overthrown in 1823, and Mexico then became a republic. Independence from Spain held. The country’s first form of government, however, gave way within about two years.

Causes and consequences

  1. About ten years of war against Spanish colonial forces Treaty of Córdoba confirms Mexican independence
  2. Spain's weakening control over its colonies O'Donojú sent to negotiate Mexico's independence
  3. Signing of the Treaty of Córdoba End of the Mexican War of Independence
  4. Signing of the Treaty of Córdoba Spanish rule formally ended; Mexicans to govern themselves

Why it matters

The treaty formally recognized that Spanish rule over Mexico had ended and laid the foundation for the independent nation of Mexico. It also shows how a long armed struggle ended in a negotiated agreement with a colonial power whose control was weakening.

Report a mistake

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

    Related events

    Meanwhile in other topics