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:
Costa Rica–Mexico relations
Costa Rica and Mexico are two Latin American nations that share a common history in the fact that both nations were colonized by the Spanish empire. During Spanish colonization, Costa Rica was under the administration of the Viceroyalty of New Spain in Mexico City. In 1821, Mexico gained independence from Spain and Costa Rica became part of the First Mexican Empire. In 1823, the empire dissolved and Costa Rica, along with El Salvador, Guatemala, Honduras and Nicaragua joined the United Provinces of Central America. In 1838, the union dissolved and Costa Rica became an independent nation. That same year, Costa Rica and Mexico established diplomatic relations.