human
When did the Mexican–American War end?
assistant
The war ended in 1848. It was a war between the United States and Mexico. The war was fought over the question of whether the United States should annex Texas, which was then a part of Mexico.