The term "six flags over Texas" comes from the multiple countries that have claimed the territory. Spain was the first European country to claim the area of Texas. France held a short lived colony in Texas. Mexico owned the territory until 1836 when Texas won its independence, becoming an independent Republic. In 1845 it joined the United States as the 28th state. wikipedia