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
Afro-Mexicans in the Mexican War of Independence the Mexican War of Independence 1810- 1821, it is estimated that about 30 to 40 percent of mixed race Mexicans had African in their mix. The decree abolishing slavery by priest Miguel Hidalgo, Mexico’s Founding Father, was a significant enticement to attract Afro-Mexicans to the fighting ranks, and there were many unsung heroes. Most of the Mexican citizens with African ascendance are located in the southern part of the territory, their location is mostly based on that the importance of the ports and harbors that connected the Pacific Ocean and the Gulf of Mexico which goes to the Atlantic. The