Barack Obama won the 2008 US presidential election, becoming the first African American president. He defeated Republican John McCain, taking at least 338 electoral votes. Obama tapped into voter frustration with the economy and war in Iraq. His victory marked a historic moment and ushered in Democratic gains in Congress. McCain conceded defeat, saying the American people had spoken clearly.