Question: when texas was a country?
Answer: Although Mexico's war of independence pushed out Spain in 1821, Texas did not remain a Mexican possession for long. It became its own country, called the Republic of Texas, from 1836 until it agreed to join the United States in 1845. Sixteen years later, it seceded along with 10 other states to form the Confederacy.