In 1840, William Henry Harrison was elected President of the United States. Harrison, who had served as a general and as United States Senator from Ohio, defeated the incumbent president, Democrat Martin Van Buren, in a campaign that broke new ground in American politics. Among other firsts, Harrison's victory was the first time the Whig Party won a presidential election. A month after taking office, Harrison died and his running mate John Tyler served the remainder of his term, but broke from the Whig agenda, and was expelled from the party.