Barack Obama was elected the first black president of the United States, sweeping away the last racial barrier in American politics. His election represented a repudiation of the Republican policies under President Bush and an embrace of Obama's call for change. It was also a striking symbolic moment in the country's racial history. Obama defeated John McCain, capturing a majority in Congress and many battleground states. In his victory speech, Obama said change had come to America and that he would be president for all Americans.