Mexican War of Independence Valladolid (now Morelia), had gained renown for his zeal against Hidalgo's and Morelos's rebels during the early independence struggle. A favorite of the Mexican church hierarchy, Iturbide symbolized conservative criollo values; he was devoutly religious, and committed to the defense of property rights and social privileges. He also resented his lack of promotion and failure to gain wealth. Iturbide's assignment to the Oaxaca expedition coincided with a successful military coup in Spain against the monarchy of Ferdinand VII. The coup leaders, part of an expeditionary force assembled to suppress the independence movements in the Americas, had turned against the monarchy.
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,