At the Democratic National Convention in Charlotte , North Carolina , Obama and Joe Biden were formally nominated by former President Bill Clinton as the Democratic Party candidates for president and vice president in the general election . Their main opponents were Republicans Mitt Romney , the former governor of Massachusetts , and Representative Paul Ryan of Wisconsin
Democratic National Convention
2012 Democratic National Convention
Barack Obama