Final answer:
Texas was a Spanish colony when Mexico won its independence, then became an independent republic, and was later annexed by the United States.
Step-by-step explanation:
When Mexico won its independence from Spain in 1821, Texas was a Spanish colony. The Mexican government allowed Anglo settlement from the United States into Texas, and the new settlers rebelled and achieved independence in 1836, establishing the Lone Star Republic. Texas remained an independent nation from 1836 to 1846, when it was annexed by the United States.