Barack Obama's tenure as the 44th president of the United States began with his first inauguration on January 20, 2009, and ended on January 20, 2017. Obama, a Democrat from Illinois, took office after defeating the Republican nominee John McCain in the 2008 presidential election. Four years later, he won re-election in the 2012 presidential election, after defeating the Republican nominee Mitt Romney. Alongside Obama's presidency, the Democratic Party also held their majorities in the House of Representatives during the 111th U.S. Congress following the 2008 elections, thereby attained an overall federal government trifecta. Obama is the first African American president, the first multiracial president, the first non-white president, and the first president born in Hawaii. Obama was constitutionally limited to two terms (the second re-elected Democrat President to be so) and was succeeded by Republican Donald Trump, who won the 2016 presidential election against Obama's preferred successor, Hillary Clinton. Historians and political scientists rank him among the upper tier in historical rankings of American presidents.
Obama's accomplishments during the first 100 days of his presidency included signing the Lilly Ledbetter Fair Pay Act of 2009 relaxing the statute of limitations for equal-pay lawsuits; signing into law the expanded Children's Health Insurance Program (S-CHIP); winning approval of a congressional budget resolution that put Congress on record as dedicated to dealing with major health care reform legislation in 2009; implementing new ethics guidelines designed to significantly curtail the influence of lobbyists on the executive branch; breaking from the Bush administration on a number of policy fronts, except for Iraq, in which he followed through on Bush's Iraq withdrawal of US troops; supporting the UN declaration on sexual orientation and gender identity; and lifting the 7½-year ban on federal funding for embryonic stem cell research. Obama also ordered the closure of the Guantanamo Bay detention camp, in Cuba, though it remains open. He lifted some travel and money restrictions to the island.