 The Republic of Texas won its independence from Mexico in the Texas Revolution of 1835–1836.Texas had largely been settled by Americans from the Southern United States, and many of those settlers owned slaves despite an 1829 Mexican law that abolished slavery.Many in the United States and Texas thus favored the admission of Texas into the union as a slave state.