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.
History of North America
Meanwhile, Spain's hold on Mexico was weakening. Independence was declared in 1810 by Miguel Hidalgo, starting the "Mexican War of Independence". In 1813, José María Morelos and the Congress of Anáhuac signed the Solemn Act of the Declaration of Independence of Northern America, the first legal document where the separation of the New Spain with respect to Spain is proclaimed. Spain finally recognized Mexico's independence in 1821.