Final answer:
Texas gained its independence from Mexico in 1836 when it declared independence as the Republic of Texas or the Lone Star Republic.
Step-by-step explanation:
Texas gained its independence from Mexico in 1836 when it declared independence as the Republic of Texas or the Lone Star Republic. The Texas Revolution took place from 1835-1836, with the Texan forces defeating the Mexican troops and establishing an independent nation.