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
Latin American wars of independence movement against their colonial master, finally ended as a full-fledged civil war. Traditionally, the process is divided into three stages: Patria Vieja, Reconquista, and Patria Nueva. The first uprising against Spanish rule took place in 1809, and criollos in Ecuador set up a junta on September 22, 1810 to rule in the name of the Bourbon monarch; but as elsewhere, it allowed assertion of their own power. Only in 1822 did Ecuador fully gain independence and became part of Gran Colombia, from which it withdrew in 1830. At the Battle of Pichincha, near present-day Quito, Ecuador on May 24, 1822,