<Tr> <Td> <Ul> <Li> </Li> <Li> </Li> <Li> </Li> </Ul> </Td> </Tr> <Ul> <Li> </Li> <Li> </Li> <Li> </Li> </Ul> <P> In 1845, the Republic of Texas was annexed to the United States of America, becoming the 28th U.S. state . Border disputes between the new state and Mexico, which had never recognized Texas independence and still considered the area a renegade Mexican state, led to the Mexican--American War (1846--1848). When the war concluded, Mexico relinquished its claim on Texas, as well as other regions in what is now the southwestern United States . Texas' annexation as a state that tolerated slavery had caused tension in the United States among slave states and those that did not allow slavery . The tension was partially defused with the Compromise of 1850, in which Texas ceded some of its territory to the federal government to become non-slave - owning areas but gained El Paso </P> <P> The Republic of Texas had formed in 1836, after breaking away from Mexico in the Texas Revolution . The following year, an ambassador from Texas approached the United States about the possibility of becoming an American state . Fearing a war with Mexico, which did not recognize Texas independence, the United States declined the offer . In 1844, James K. Polk was elected the United States president after promising to annex Texas . Before he assumed office, the outgoing president, John Tyler, entered negotiations with Texas . On February 26, 1845, six days before Polk took office, the U.S. Congress approved the annexation . The Texas legislature approved annexation in July 1845 and constructed a state constitution . In October, Texas residents approved the annexation and the new constitution, and Texas was officially inducted into the United States on December 29, 1845 . </P>

What war broke out after texas became the 28th state