The Mexican–American War (1846–48) dominated the 1848 presidential race, shaping platforms, candidates, and voter sentiment.
Taylor's victories fueled expansionist fervor. Many voters wanted more Mexican territory; others (North, some South) feared slavery's spread.
Wilmot Proviso (1846)—banning slavery in new territories—passed House, failed Senate. The war intensified North–South distrust.
Democrats split: Polk loyalists vs. anti-war "Barnburners." Whigs united behind a non-ideological hero.
Taylor won 163–127 electoral votes (47% popular). His death in 1850 brought Millard Fillmore—and the Compromise of 1850, delaying but not resolving the crisis the war unleashed.
The war's territorial gains (California, Southwest) forced the slavery question onto the national stage, setting the path to Civil War.