President Emmerson Mnangagwa has won Zimbabwe’s presidential election, according to the electoral commission.
With all 10 provinces declared, Mr Mnangagwa won 50.8% of votes, compared to 44.3% for opposition leader Nelson Chamisa.
Police removed opposition officials from the electoral commission stage when they rejected the results.
The chairman of Mr Chamisa’s MDC Alliance said the count could not be verified.
By narrowly winning more than 50% of the vote, Mr Mnangagwa avoids a run-off election against Mr Chamisa.
The president said on Twitter he was “humbled”, and called the result “a new beginning”.
Mr Mnangagwa, from the governing Zanu-PF party, took over as president last November from long-serving leader Robert Mugabe.
Mr Chamisa has insisted he is the winner of the presidential poll, telling reporters earlier on Thursday that Zanu-PF was “trying to bastardise the result”, something “we will not allow”.
But the Zimbabwe Electoral Commission (Zec) said there was “absolutely no skulduggery”.
Six people died after opposition protests in Harare on Wednesday over alleged vote-rigging.
The elections were the first since Mr Mugabe, 94, was ousted and were intended to set Zimbabwe on a new path following years of repressive rule.
Harare was reported to be quiet on Thursday, as troops patrolled the city centre ordering people to “behave”.
Mr Mnangagwa said the government was in talks with Mr Chamisa to defuse the crisis. He proposed an independent investigation to bring those who were behind the violence to justice.
“This land is home to all of us and we will sink or swim together,” Mr Mnangagwa said in a series of tweets.
What happened after the vote?
The day after the election, the MDC Alliance said Mr Chamisa had won the presidential vote, pre-empting an official announcement and prompting its supporters to celebrate in some areas of Harare.
The following day, when Zec announced that Zanu-PF had won the parliamentary vote by a landslide, tensions rose.
Opposition supporters were also angered by the delay in announcing the presidential results.