Mexican–American War from the war of independence (1810–1821) as a weak and divided force. Before the war with the United States, the military faced both internal and foreign challenges. The Spanish still occupied the coastal fortress of San Juan de Ulúa, and Spain did not recognize Mexico's independence, so that the new nation was at risk for invasion. In 1829, the Spanish attempted to reconquer their former colony and Antonio López de Santa Anna became a national hero defending the homeland. The army had a set of privileges ("fueros"), established in the colonial era, that gave it jurisdiction over many aspects of
Ecuadorian War of Independence Guaranda on September 2, 1821. Aymerich moved to block any further progress, and in the Second Battle of Huachi, which took place on September 12, 1821, annihilated Sucre's infantry. The patriot forces lost 800 men, mostly killed, plus 50 prisoners, among them General Mires. As Second Huachi had also taken a heavy toll on the Royalists, Aymerich decided against exploiting his victory with an advance on the coastal plains. On November 19, 1821, a 90-day armistice was signed at Babahoyo, putting an end to Sucre's ill-fated first attempt to liberate Quito. Ecuadorian War of Independence The Ecuadorian War of Independence