Mahama won the December 2012 general election with 50.70% of the total valid votes cast and a 3% winning margin beating his nearest rival, Nana Akufo-Addo of the main opposition New Patriotic Party, who polled a close 47.74%. This was just barely enough to win the presidency without the need for a runoff. In addition, Mahama won the majority of valid votes cast in eight out of Ghana's ten administrative regions. Thirteen African Heads of State, one Prime Minister, two Vice-Presidents and 18 government delegations across the world attended his inaugural ceremony at the Black Star Square in Accra on 7 January 2013, when Mahama was sworn-in to begin his own four-year term.