The sistema de castas was a social hierarchy established in colonial Latin America that categorized individuals based on their racial and ethnic backgrounds. This system was used to maintain social order and control, determining one's social status, rights, and privileges primarily during the period of Spanish colonial rule. It reflected the complexities of colonial society, with a mix of Indigenous peoples, Europeans, and Africans creating a diverse yet stratified population that influenced the cultural and social dynamics of the region.