Liberian President George Weah has called his challenger in the presidential race, Joseph Boakai, to congratulate him on his victory.
In an address to the nation, he said "The Liberian people have spoken and we have heard their voice".
The opposition candidate holds an unassailable lead of 28,000 votes with nearly all ballots counted.
A former football star, President Weah has been in power since 2018. He will step down in January.
He came into the job on a wave of enthusiasm, especially from younger voters, having won that election - also against Mr Boakai - by a large margin.
But a perception that he had failed to tackle corruption, rising prices and continued economic difficulties tarnished his image.
Mr Weah was magnanimous in defeat, beginning his five-minute address by saying he had "the utmost respect for the democratic process that has defined our nation", adding that he had spoken to Mr Boakai who he called the "president-elect".
Earlier, the electoral commission announced that Mr Boakai, a 78-year-old political veteran had 50.89% of the votes, while President Weah had 49.11%.
The president referred to the closeness of the race saying it "reveals a deep division within our country" and called on Liberians to "work together to find common ground... unity is paramount for mama Liberia".
A long period of civil war in which an estimated 250,000 people died ended just 20 years ago.
When the latest set of results were announced earlier on Friday, they sparked celebrations in the capital, Monrovia.
Mr Boakai's supporters gathered at his party's headquarters in the city, convinced that he had won the election.
They called for President Weah to go, and chanted "we beat the Buga dancer" - referring to a song that became associated with his campaign.
The electoral commission says it has announced the results from 99.58% of the polling stations following Tuesday's run-off election.
The run-off between Mr Boakai and Mr Weah was triggered after neither candidate got more than 50% of the vote in last month's first round. There were 18 other candidates.
In that vote, the president got the largest share and was just 7,000 votes ahead of Mr Boakai.
The poll was the tightest presidential contest in Liberia since the civil war.
Mr Boakai's campaigning focused on the need to rescue the nation from what he called "mismanagement" by Mr Weah's administration.
The president dismissed Mr Boakai's allegations, saying he had made significant strides, including introducing free tuition for university students.
This is the fourth time a presidential election has taken place since the war ended.
Observers from the regional bloc, Ecowas, deemed the run-off largely peaceful, AFP news agency reports.
But there were isolated incidents that led to "injuries and hospitalisations" in the provinces of Lofa, Nimba, Bong and Montserrado, it quotes observers as saying.
Latest Stories
-
NDC Mining Committee for 2024 campaign refutes allegations of recruiting thugs for elections
9 mins -
Traction Control: A lifesaver with an off switch? Here’s why it exists
13 mins -
I don’t need anyman to woo me with money – Miss Malaika 2024 winner refutes pimping claims
20 mins -
”Kurt Okraku sabotaged my national team career because I refused to sign with Dreams FC” – Najeeb Yakubu
20 mins -
Businesses urged to leverage Generative AI for enhanced customer engagement
24 mins -
MultiChoice Ghana partners with Ghana Hotels Association to elevate guest entertainment
33 mins -
Bawumia’s music streaming app or Mahama’s pay-per-view TV channel?
38 mins -
Karpowership Ghana empowers 40 Takoradi Technical University students with scholarship
40 mins -
We expect significant reduction in prices of petroleum products in coming weeks – CEO AOMC
53 mins -
Betway Africa offers once-in-a-lifetime ‘Play-on-the-Pitch’ experience at Emirates Stadium
1 hour -
I coined the term ‘hype man’ in Ghana – Merqury Quaye
1 hour -
Vasseur questions ‘strange momentum’ of Formula One race director change
1 hour -
“I am disappointed in Kojo Manuel” – Merqury Quaye on “no tie” comment
1 hour -
Nana Kwame Bediako; The beacon of unity
2 hours -
Western Region: NDC youth wing embarks on phase 2 of ‘retail campaign’
2 hours