Texas was annexed by the United States in 1845 after the Republic of Texas declared independence from Mexico in 1836. It was not acquired through direct conquest of Mexico.