On election day, 13 March 1787, Anti-Federalist candidate and former President John Langdon won the popular vote by a margin of 392 votes against his foremost opponent Federalist candidate and incumbent President John Sullivan. But because no candidate received a majority of the popular vote, a separate election was held by the New Hampshire General Court, which chose Sullivan as the winner instead of Langdon. Sullivan thereby held Federalist control over the office of President and was sworn in for his second term on 6 June 1787.[2]