In the 1848 presidential election, the Democratic and Whig parties