Franklin Pierce (November 23, 1804 – October 8, 1869) was the 14th President of the United States (1853–1857) and is the only President from New Hampshire. Pierce was a Democrat and a "doughface" (a Northerner with Southern sympathies) who served in the U.S. House of Representatives and the Senate. Pierce took part in the Mexican-American War and became a brigadier general in the Army. His private law practice in his home state, New Hampshire, was so successful that he was offered several important positions, which he turned down. Later, he was nominated as the party's candidate for president on the 49th ballot at the 1852 Democratic National Convention. In the presidential election, Pierce and his running mate William R. King won by a landslide in the Electoral College. They defeated the Whig Party ticket of Winfield Scott and William A. Graham by a 50 percent to 44 percent margin in the popular vote and 254 to 42 in the electoral vote.