History of Albuquerque, New Mexico
In 1821, Mexico gained its independence from Spain following the Mexican War of Independence. While change was slow to come to the remote province of New Mexico, one major effect was the opening of the region for the first time to American trade. Beginning in the 1820s, the Santa Fe Trail brought American goods and merchants to New Mexico in ever-increasing numbers. Albuquerque's location on the Camino Real also made it a stopover for traders traveling south to the Mexican interior. The Mexican census of 1827 gives a population of 2,547, and shows a more diverse range of occupations than in 1790, including merchants, craftsmen, and a teacher.
Mexican–American War
The Mexican Army emerged 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 its affairs. In general, the military supported conservative positions, advocating for a strong central government and upholding privileges of the military and the Catholic Church.