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
Bolivian War of Independence Bolivian War of Independence The Bolivian war of independence began in 1809 with the establishment of government juntas in Sucre and La Paz, after the Chuquisaca Revolution and La Paz revolution. These Juntas were defeated shortly after, and the cities fell again under Spanish control. The May Revolution of 1810 ousted the viceroy in Buenos Aires, which established its own junta. Buenos Aires sent three military campaigns to the Charcas, headed by Juan José Castelli, Manuel Belgrano and José Rondeau, but the royalists ultimately prevailed over each one. However, the conflict grew into a guerrilla war, the War of the