Barack Obama has been elected the first black president of the United States. Senator John McCain conceded the election around 11:20 p.m. McCain, who was joined on stage by his running mate Sarah Palin, said he wished his former Democratic opponent goodwill in his coming term as president.