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
Territorial evolution of North America since 1763 the imperial powers of Europe had the resources to support and expand settlements in North America. As time went on the colonies became more powerful and sought independence from the Old World. These demands for more autonomy sparked several wars, including the American Revolutionary War (1775–1783) and the Mexican War of Independence (1810–1821). The last major colonial power on the continent, the United Kingdom, granted dominion status to Canada in 1867 and slowly turned over its remaining land to that country over the next 100 years, with the last land transfer being the Dominion of Newfoundland in 1949. Throughout this