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
Historiography of Colonial Spanish America disdain. An important example is Mexico's conservative politician and intellectual Lucas Alamán. His five-volume "Historia de Mejico" is the country's first history, covering the colonial era up to and including the struggle for independence. Alamán viewed crown rule during the colonial era as ideal, and political independence that after the brief monarchy of Agustín de Iturbide, the Mexican republic was characterized by liberal demagoguery and factionalism. Writing in the mid-nineteenth century, Mexican liberal Vicente Riva Palacio, grandson of insurgent hero Vicente Guerrero, wrote a five-volume history of the colonial era from a liberal viewpoint, During the era of Porfirio Díaz