However, beginning in the 1990s, the Democratic Party began to improve its performance in Ontario County thanks to the growth of Rochester's outer suburbs in areas such as Victor and Farmington. In 1996, Ontario County voted for the Democratic presidential candidate for the first time since 1964 and only the second time since the Whig Party contested its first presidential election in 1836. In 2008, John McCain narrowly edged a victory over Barack Obama by less than one percent, and in 2012 Obama narrowly lost the county to Republican nominee Mitt Romney by a margin of 1.5 percent. In 2016, Republican nominee Donald Trump of New York City won the county by 7.3 percent over Democratic nominee and former United States Secretary of State / former Senator from New York Hillary Clinton of Chappaqua, New York. In 2020, Democrat Joe Biden came incredibly close, losing the county to Trump by just 14 votes.