Question: which country did the united states fight to gain possession of texas?
Answer: Mexican–American War: An armed conflict between the United States and Mexico spanning 1846–1848 in the wake of the 1845 US annexation of Texas, which Mexico considered part of its territory despite the 1836 Texas Revolution.