answer: The U.S. thus inherited Texas' border dispute with Mexico ; this quickly led to the Mexican-American War , during which the U.S. captured additional territory (known as the Mexican Cession of 1848), extending the nation's borders all the way to the Pacific Ocean .