The Mexican War of Independence (1810–1821) was an armed conflict and political process that ended Spanish rule over New Spain and led to the creation of an independent Mexico. It was not a single event but a set of local and regional struggles occurring in the same period, and it is often described as a revolutionary civil war. It concluded in September 1821, after the collapse of royal government and the military victory of independence forces, with the drafting of a declaration of independence in Mexico City.
Background and origins






Mexican independence was not an inevitable result of the relationship between Spain and its most valuable overseas possession. Events in Spain, however, shaped the outbreak of the insurgency in 1810. When Napoleon invaded Spain in 1808 and placed his brother on the throne, a crisis of legitimacy arose. Local juntas formed in Spain and overseas territories to rule in the monarch's name, and delegates meeting in Cádiz drafted the Constitution of 1812, which attempted to address the demands of American-born Spaniards for greater local control and equal standing with those born in Spain. Existing cultural, religious and racial divisions also shaped the movement as it developed.
Phases of the conflict






The first uprising was led by the parish priest Miguel Hidalgo y Costilla, who issued the Cry of Dolores in September 1810. The revolt was large but poorly organized, and Hidalgo was captured, executed and his cause taken up by José María Morelos, who was also captured and executed in 1815. The insurgency then became guerrilla warfare, with Vicente Guerrero emerging as a leader. Neither side gained a decisive advantage until Agustín de Iturbide, a former royalist commander, allied with Guerrero in 1821 under the Plan of Iguala, which quickly led to the collapse of royal government.
Outcome and significance





The turn of events in Mexico was influenced by Spain, where liberals overthrew the autocratic rule of Ferdinand VII in 1820, prompting conservatives in New Spain to see independence as a way to protect their position. The victorious forces entered Mexico City in September 1821, and the last Spanish viceroy signed the Treaty of Córdoba, ending Spanish rule. The new state became the First Mexican Empire under Iturbide, which was overthrown in 1823, and Spain recognized Mexico's independence in 1836.
