Treaty of Córdoba
The Treaty of Córdoba established Mexican independence from Spain at the conclusion of the Mexican War of Independence. It was signed on August 24, 1821 in Córdoba, Veracruz, Mexico. The signatories were the head of the Army of the Three Guarantees, Agustín de Iturbide, and, acting on behalf of the Spanish government, "Jefe Político Superior" Juan O'Donojú. The treaty has 17 articles, which developed the proposals of the Plan of Iguala. The Treaty is the first document in which Spanish (without authorization) and Mexican officials accept the liberty of what will become the First Mexican Empire, but it is not today recognized as the foundational moment, since these ideas are often attributed to the Grito de Dolores (September 16, 1810). The treaty was rejected by the Spanish government. Spain did not recognize Mexico's independence until December 1836.
Mexican War of Independence
From 1815 to 1821 most of the fighting for independence from Spain was done by small and isolated guerrilla bands. From these, two leaders arose: Guadalupe Victoria (born José Miguel Fernández y Félix) in Puebla and Vicente Guerrero in Oaxaca, both of whom gained allegiance and respect from their followers. Believing the situation under control, the Spanish viceroy issued a general pardon to every rebel who would lay down his arms. After ten years of civil war and the death of two of its founders, by early 1820 the independence movement was stalemated and close to collapse. The rebels faced stiff Spanish military resistance and the apathy of many of the most influential criollos.