Mexican War of Independence arm of the conspirators and in early 1821 he met Vicente Guerrero. Both proclaimed the Plan of Iguala, which called for the union of all insurgent factions and was supported by both the aristocracy and clergy of New Spain. It called for monarchy in an independent Mexico. Finally, the independence of Mexico was achieved on September 27, 1821. After that, the mainland of New Spain was organized as the Mexican Empire. This ephemeral Catholic monarchy changed to a federal republic in 1823, due to internal conflicts and the separation of Central America from Mexico. After some Spanish reconquest attempts, including
Mexican War of Independence rule until the Hidalgo revolt of 1810. Elites in Mexico City in the seventeenth century did force the removal of a reformist viceroy, the Marqués de Gelves, following an urban riot in 1624 fomented by those elites. He attempted to eliminate corrupt practices by creole elites as well as rein in the opulent displays of the clergy's power, but ecclesiastical authorities in conjunction with creole elites mobilized urban plebeians to oust the viceroy. The crowd was reported to shout, "Long live the King! Love live Christ! Death to bad government! Death to the heretic Lutheran [Viceroy Gelves]! Arrest the viceroy!"