Obama, a Democrat from Illinois, took office following a decisive victory over
Republican John McCain in the 2008 presidential election. Four years later, in the 2012 election, he defeated Republican Mitt Romney to win re-election. ... Obama was succeeded by Republican Donald Trump, who won the 2016 presidential election.