President Emmerson Mnangagwa has won Zimbabwe’s presidential election, according to the electoral commission.
With all 10 provinces declared, 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 Chamisa’s MDC Alliance said the count could not be verified.
By narrowly winning more than 50% of the vote, Mnangagwa avoids a run-off election against Chamisa.
The president said on Twitter he was “humbled”, and called the result “a new beginning”.
Mnangagwa, from the governing Zanu-PF party, took over as president last November from long-serving leader Robert Mugabe.
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 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”.
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.
The day after the election, the MDC Alliance said 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.
Home Affairs Minister Obert Mpofu said the government would not tolerate such protests. The opposition “are testing our resolve, and I think they are making a big mistake”, he said.
A spokesman for Chamisa condemned the deployment of soldiers and the subsequent loss of life.
“Soldiers are trained to kill during war. Are civilians enemies of the state?” he asked. “There is no explanation whatsoever for the brutality that we saw.”