Texas's nickname pays tribute to the Lone Star flag, which was adopted after Texas became independent from Mexico in 1836. Texas was an independent republic for ten years before accepting annexation to the United States, and the flag reflects the pride and go-it-alone spirit that is still part of the Texas way of life.