Answer
The Mexican–American War was a conflict between the United States and Mexico that lasted from 1846 to 1848. James Longstreet served in the United States Army during this war and fought in several battles, including the Battle of Monterrey and the Battle of Buena Vista. He distinguished himself during the war and was promoted to the rank of brevet major.