The Mexican-American War (1846-1848) was a pivotal conflict that resulted in the United States acquiring vast territories in the present-day American Southwest, including California and New Mexico, significantly shaping the nation's expansionist policies. This war was driven by the U.S. doctrine of Manifest Destiny and exacerbated tensions over the expansion of slavery into new territories, influencing the political landscape leading up to the American Civil War.