The flag of the State of Texas was first adopted in the Republic of Texas on January 25, 1839.
The state flag code states that single (lone) star "represents ALL of Texas and stands for our unity as one for God, State, and Country." The "lone star" is, in fact, an older symbol predating the flag which was used to symbolize Texans' solidarity in declaring independence from Mexico. The first Flag of the Republic was a single star on a blue field

The single red stripe and single white stripe dates back to the short-lived Republic of Fredonia, a small state near modern Nacogdoches which seceded from Mexico in 1826 before being forcibly re-integrated. The new state was formed through an alliance between local Anglo settlers and Native American tribes and the Fredonian flag used a white and red stripe to symbolize the two ethnic/racial groups from which the state was formed.

The Texas flag is one of only two state flags that flew over sovereign nations before they joined the Union, the other being the Hawaiian Republic's flag.
