Indigenous peoples of Mexico
When Mexico gained independence in 1821, the casta system was eliminated as a legal structure, but racial divides remained. 
White Mexican argued about what the solution was to the "Indian Problem", that is indigenous who continued to live in communities and were not integrated politically or socially as citizens of the new republic. The Mexican constitution of 1824 has several articles pertaining to indigenous peoples. The second article of the constitution of Mexico recognizes and enforces the right of indigenous peoples and communities to self-determination and therefore their autonomy to:
History of New Mexico
The decade that led up to independence was a painful period in the history of Mexico. In 1810 catholic priest Miguel Hidalgo instigated a war for independence in central Mexico, a struggle that quickly took on the character of a class war. The following year, military captain Las Casas instigated a coup within the Imperial regime. Sympathizing with the poor underclass, Las Casas opened up a line of dialogue with the revolutionaries. This caused the Spanish elite to instigate its own counter coup and executed Las Casas. For years afterward the regime failed to regain coherency and the mandate to administrate. These ideological struggles affected peripheral New Mexico much less than they did the national center, but it resulted in a sense of alienation with central authority.