The presidency of Barack Obama began at noon EST on January 20, 2009, when Barack Obama was inaugurated as President of the United States, and ended on January 20, 2017. Obama, a Democrat, took office as the 44th United States president following a decisive victory over Republican John McCain in the 2008 presidential election. Four years later, in the 2012 election, he defeated Mitt Romney to win re-election. He was the first African American president, the first multiracial president, the first non-white president, and the first president to have been born in Hawaii. Obama was succeeded by Republican Donald Trump, who won the 2016 presidential election.
Obama's first-term actions addressed the global financial crisis and included a major stimulus package, a partial extension of the Bush tax cuts, legislation to reform health care, a major financial regulation reform bill, and the end of a major US military presence in Iraq. Obama also appointed Supreme Court Justices Elena Kagan and Sonia Sotomayor, the latter of whom became the first Hispanic American on the Supreme Court. Democrats controlled both houses of Congress until Republicans won a majority in the House of Representatives in the 2010 elections. Following the elections, Obama and Congressional Republicans engaged in a protracted stand-off over government spending levels and the debt ceiling.