The Free Soil Party formed during the 1848 presidential election, which took place in the aftermath of the Mexican–American War and debates over the extension of slavery into the Mexican Cession. After the Whig Party and the Democratic Party nominated presidential candidates who were unwilling to rule out the extension of slavery into the Mexican Cession, anti-slavery Democrats and Whigs joined with members of the abolitionist Liberty Party to form the new Free Soil Party. Running as the Free Soil presidential candidate, former President Martin Van Buren won 10.1 percent of the popular vote, the strongest popular vote performance by a third party up to that point in U.S. history.