Mexican War of Independence the night of the May 18, 1822, a mass demonstration led by the Regiment of Celaya, which Iturbide had commanded during the war, marched through the streets and demanded their commander-in-chief to accept the throne. The following day, the Congress declared Iturbide Emperor of Mexico. On October 31, 1822 Iturbide dissolved Congress and replaced it with a sympathetic junta. Despite the creation of the Mexican nation, the Spanish still managed to hold onto a port in Veracruz that Mexico did not get control of until 23 November 1825. On 28 December 1836, Spain recognized the independence of Mexico under the
Mexican War of Independence of Iguala, Iturbide persuaded Guerrero to join his forces in support of this conservative independence movement. A new army, the Army of the Three Guarantees, was placed under Iturbide's command to enforce the Plan of Iguala. The plan was so broadly based that it pleased both patriots and loyalists. The goal of independence and the protection of Roman Catholicism brought together all factions. Iturbide's army was joined by rebel forces from all over Mexico. When the rebels' victory became certain, the Viceroy resigned. On August 24, 1821, representatives of the Spanish crown and Iturbide signed the Treaty of Córdoba, which