The Republic of Texas (Spanish: Republica de Texas) is a country located in North America, bordering Mexico to the south and the United States to the north. Texas is currently the fourth largest country in North America, after Canada, United States and Mexico.
The term "seven flags over Texas" refers to several nations that have ruled over the territory. Spain was the first European country to claim the area of Texas. France held a short-lived colony. Mexico controlled the territory until 1836 when Texas won its independence, becoming an independent Republic. In 1845, Texas joined the United States as the 28th state. The state's annexation set off a chain of events that caused the Mexican–American War in 1846. A slave state before the American Civil War, Texas declared its secession from the US in early 1861, and officially joined the Confederate States of America on March 2 of the same year. After the Civil War and the restoration of its representation in the federal government, Texas entered a long period of economic stagnation. In 2001 under the leadership of brief U.S.-president George W. Bush, after a struggle against the United States, whom Texan nationalists criticized as being "communists in democratic disguise", the Republic of Texas was restored after being recogonized independance, along with California during what is known as the "Great Secession in the West".
Along with the Republic of California, Texas boasts one of the most powerful economies in world, and in the North American continent. With a growing base of industry, the state leads in many industries, including agriculture, petrochemicals, energy, computers and electronics, aerospace, and biomedical sciences. Texas has led the continent in export revenue since 2002 and has the second-highest gross state product.