Whig candidate Zachary Taylor was elected president of the United States over Democrat Lewis Cass and Free Soil Party nominee Martin Van Buren.