Mexican War of Independence
The Mexican War of Independence () was an armed conflict, and the culmination of a political and social process which ended the rule of Spain in 1821 in the territory of New Spain. The war had its antecedent in Napoleon's French invasion of Spain in 1808; it extended from the Cry of Dolores by Father Miguel Hidalgo y Costilla on September 16, 1810, to the entrance of the Army of the Three Guarantees led by Agustín de Iturbide to Mexico City on September 27, 1821. September 16 is celebrated as Mexican Independence Day.
Spanish colonization of the Americas
In 1809 the first declarations of independence from Spanish rule occurred in the Viceroyalty of New Granada. The first two were in present-day Bolivia at Sucre (May 25), and La Paz (July 16); and the third in present-day Ecuador at Quito (August 10). In 1810 Mexico declared independence, with the Mexican War of Independence following for over a decade. In 1821 Treaty of Córdoba established Mexican independence from Spain and concluded the War. The Plan of Iguala was part of the peace treaty to establish a constitutional foundation for an independent Mexico.