Conversation so far:
How did America become colonized by the Spanish?
America was colonized by overseas expansion initiated under the royal authority and first accomplished by the Spanish conquistadors. The Americas were invaded and incorporated into the Spanish Empire
What happened to Mexico in the 19th century in the Spanish colonization of the Americas?
In the early 19th century, the Spanish American wars of independence resulted in the secession and subsequent balkanization of most Spanish colonies in the Americas

Question: How did Mexico gain independence?
Self-contained rewrite: How did Mexico gain independence during the Spanish colonization of the Americas?