The Republic of Texas was the only state to enter by treaty into the United States and admitted to the Union as the 28th state on December 29, 1845.
The Republic of Texas declared independence from the Republic of Mexico on March 2, 1836. It applied for annexation to the United States the same year, but was rejected by the United States secretary of state, John Forsyth, under President Andrew Jackson. At that time, the majority of the Texian population favored the annexation of the Republic by the United States. The leadership of both major U.S. political parties (the Democrats and the Whigs) opposed the introduction of Texas – a vast slave-holding region – into the volatile political climate of the pro- and anti-slavery sectional controversies in Congress. Moreover, they wished to avoid a war with Mexico, whose government had outlawed slavery and refused to acknowledge the sovereignty of its rebellious northern province. With Texas's economic fortunes declining by the early 1840s, the president of the Texas Republic, Sam Houston, arranged talks with Mexico to explore the possibility of securing official recognition of independence, with the United Kingdom mediating.