Opposition candidate Felix Tshisekedi has won DR Congo's presidential election, electoral officials say.
The announcement, made overnight, sparked accusations of an "electoral coup" from runner-up Martin Fayulu.
The Catholic Church said that the result did not match data collected by its election monitors.
The ruling party, whose candidate finished third, has not yet contested the result, prompting allegations of a power-sharing deal with Mr Tshisekedi.
It is an accusation Mr Tshisekedi's team denies.
If confirmed, Mr Tshisekedi will be the first opposition challenger to win since the DR Congo gained independence in 1960. Current President Joseph Kabila is stepping down after 18 years in office.
The capital Kinshasa and other key cities appeared calm on Thursday, but fears remain that the announcement of the result could trigger unrest. UN chief Antonio Guterres appealed for all parties to refrain from violence.
How was the result announced?
In the early hours of Thursday the head of DR Congo's National Electoral Commission (Ceni), Corneille Nangaa, said Mr Tshisekedi had received 38.5% of the vote in the 30 December election and had been "provisionally declared the elected president".
The full results were, with turnout reportedly 48%:
- Felix Tshisekedi - 7 million votes
- Martin Fayulu - 6.4 million votes
- Emmanuel Shadary - 4.4 million votes
The result can still be challenged.
What's the reaction been?
Mr Tshisekedi vowed to be "the president of all DR Congolese", saying: "No-one could have imagined such a scenario whereby an opposition candidate would emerge victorious."
He struck a conciliatory tone with Mr Kabila when addressing supporters at his Union for Democracy and Social Progress party headquarters in Kinshasa.
"I pay tribute to President Joseph Kabila and today we should no longer see him as an adversary, but rather, a partner in democratic change in our country," he said.
A spokesman for Mr Shadary, who had been Mr Kabila's hand-picked candidate and was expected to win, accepted the defeat, saying "the Congolese people have chosen and democracy has triumphed".
Mr Fayulu's supporters say this backs their suspicion Mr Tshisekedi has cut a power-sharing deal with Mr Kabila. Mr Tshisekedi's spokesman, Louis d'Or Ngalamulume, said there was "never any deal".
The BBC's Africa editor, Fergal Keane, says Mr Tshisekedi is seen by many as the opposition candidate least objectionable to President Kabila and that it is perhaps significant that neither Mr Kabila nor his party have so far voiced any objection to the result.
Mr Fayulu, a former oil tycoon, said the results had "nothing to do with the truth".
"The Congolese people will never accept such a fraud," he told the BBC, adding: "Felix Tshisekedi never got 7 million votes. Where did he get them from?"
He said the electoral commission and ruling party had made up the figures to give Mr Tshisekedi - their "protégé" - victory.
The influential Catholic Church, which posted 40,000 observers to monitor the election, issued a statement on Thursday saying the result given by the electoral commission did not correspond with its own findings.
The statement mentions no-one by name and urges all parties to observe their civic duty and refrain from violence.
Our correspondent, Fergal Keane, says the Church may now be publicly doubting the results but it will be very wary of any public demonstrations.
Earlier, French Foreign Minister Yves Le Drian told CNews: "We must have clarity on these results, which are the opposite to what we expected."
Former colonial power Belgium has also expressed doubts about the result.
Analysis by Fergal Keane, BBC News, in Kinshasa
Given the deeply polarised nature of politics here, any result was going to leave a divisive aftermath.
Whether Mr Tshisekedi has the intention or the capacity to challenge the powerful hold Mr Kabila enjoys over the army, security services and key ministries will determine whether politics has really entered a new era. He has already spoken of working with Mr Kabila to ensure the success of democracy.
For Mr Fayulu there are difficulties, too. How does he decide to react?
The most likely route for the moment is to try to challenge the result within the 10-day period parties are allowed under the law. Given the closeness of the vote, his supporters will point to claims of irregularities in several areas.
Significantly the Church and civil society have called on citizens to avoid becoming involved in violence - a recognition of the dangers involved in street protests while facing security forces with a reputation for heavy-handedness.
Why DR Congo matters:
Felix Tshisekedi - his own man
- Son of late veteran opposition leader Etienne Tshisekedi, who died in 2017
- He has promised to make the fight against poverty his priority
- Backed out of an opposition deal to have a unity candidate
- Ran on his own ticket with the backing of politician Vital Kamerhe
- Nicknamed "Fatshi", short for three of his names Felix Antoine Tshilombo
- Became leader of of his father's UDPS party in March 2018
What's the background?
DR Congo is a country the size of Western Europe and Mr Kabila had promised its first orderly transfer of power since independence from Belgium in 1960.
He took over from his assassinated father Laurent in 2001.
Elected in 2006, Joseph Kabila secured another term in controversial elections in 2011.
He was barred from running for another term under the constitution, and was supposed to step down two years ago, but the election was postponed after the electoral commission said it needed more time to register voters.