John Adams served two terms as vice president under George Washington and narrowly won the 1796 presidential election over Thomas Jefferson. As president, Adams faced difficulties like inheriting Washington's cabinet loyal to Hamilton. He attempted to remain neutral during conflicts between Federalists and Democratic-Republicans. The passage of the controversial Alien and Sedition Acts hurt Adams' popularity and he lost reelection in 1800 to Thomas Jefferson.