Yes, Texas was a sovereign nation before joining the United States. From 1836 to 1845, the Republic of Texas existed as an independent country after winning independence from Mexico. It functioned with its own government, currency, and diplomatic relations. On December 29, 1845, Texas was annexed by the U.S. and became the 28th state, ending its nearly decade-long stint as a republic.