Ghana's main opposition leader Nana Akufo-Addo won the country's national election, defeating President John Mahama, electoral commissioner Charlotte Osei said.
Crowds of jubilant supporters gathered outside the house of the 72-year-old New Patriotic Party (NPP) leader, who had already claimed victory on Thursday, a day after the voting took place.
Akufo-Addo defeated President Mahama by 53.8 percent to 44.4 percent, Osei said.
"It is my duty and my privilege to declare Nana Akufo-Addo as the president-elect of Ghana," she told a news conference in the capital, Accra, on Friday.
Prior to Osei's announcement, Akufo-Addo said on Twitter that Mahama called him "congratulating me on winning the 2016 presidential election".
"I make this solemn pledge to you tonight: I will not let you down. I will do all in my power to live up to your hopes and expectations," Akufo-Addo told supporters in front of his residence.
Speaking to Al Jazeera, Akufo-Addo explained what he believed to be the hopes and expectations of Ghanaians: "The expectations they have of me, that I'm gonna bring them a new government, a new style; a government of honesty, a government that is concerned about the welfare of our people - that basic commitment is the one I am determined to fulfill."
Al Jazeera's Nicolas Haque, reporting from Accra, described the campaign as "bitterly fought".
"This is the moment so many people had been waiting for here at Akufo-Addo's house since the end of the voting," he said.
"It's been a long wait, especially with the delay by the election commission. Their systems broke down and they had to fax through polling sheets from 29,000 stations."
|Supporters of Akufo-Addo celebrate after he announced that he won the presidential election [Reuters]
Earlier, Mahama had appealed for calm and told his supporters he would respect the outcome of the vote, whether he won or lost, in comments aimed at defusing tension in advance of the release of official results of the vote.
"I want to assure the nation that we will respect the outcome of the election, positive or negative, and so let us just be calm," he told supporters gathered outside his house.
Mahama, who came to power in 2012 after beating Akufo-Addo, urged voters to "stay the course", promising to deliver more infrastructure projects.
Akufo-Addo was making his third bid for the top job.
Ghana's elections have been historically close, with Mahama narrowly winning against Akufo-Addo in 2012 with 50.7 percent. Akufo-Addo unsuccessfully challenged Mahama's victory in the courts.
Ghana is the world's second-largest producer of cocoa after Ivory Coast and Africa's second biggest gold producer after South Africa.
But it was forced to turn to the International Monetary Fund (IMF) in 2015 for a bailout as global commodity prices tanked.
|Akufo-Addo, pictured with his wife Rebecca, was making his third bid for the top job [Reuters]
Source: Al Jazeera and news agencies