Conversation so far:
What racial categories were there in Colonial-era Mexico?
The Spanish legal system divided racial groups into two basic categories, the República de Españoles, and the República de Indios.

Question: Who did they gain independence from?
Self-contained rewrite: Who did the indigenous Mexican people gain independence from?