Kenya's President Uhuru Kenyatta has been re-elected following Tuesday's vote, election officials say.
Mr Kenyatta, in office since 2013, took 54.3% of votes, ahead of his rival Raila Odinga, with 44.7%.
After the announcement, Mr Kenyatta called for unity, telling opposition supporters: "I reach out to you... We are all citizens of the same republic".
But the opposition rejected the results even before they were declared, calling the process a "charade".
However it has been endorsed by international observers. Mr Kenyatta said they had ensured a "free, fair and credible election".
Earlier, Mr Odinga's supporters said he had won, and published their own figures. The electoral commission said this was "illegal and premature", and said basic mathematical errors had been made.
Many observers fear a repeat of the violence after the disputed election 10 years ago when more than 1,100 Kenyans died and 600,000 were displaced.
Raila Odinga has come up short again in what was his fourth and probably last attempt to become the president of Kenya.
Polls had shown that he was tied with President Kenyatta in a race tipped to go either way. Well, they were wrong. Mr Odinga's backing by an opposition alliance was not enough to stop Mr Kenyatta's re-election.
The opposition leader had campaigned as a change candidate, calling himself the biblical Joshua and promising to lead Kenyans to Canaan, the promised land.
Despite the fact that he rallied and excited thousands across the country, a majority of voters have rejected his message, or rather rejected him, and embraced Mr Kenyatta's vision of transforming the country.
This election was also about the political duel between the Kenyatta and Odinga families, which dates back to Kenyan independence. Once again the Kenyatta camp has won.
One of the leaders of the opposition Nasa alliance, Musalia Mudavadi, said before the results announcement that its concerns about the poll had not been adequately addressed.
Nasa had complained of fraud and hacking.
Another top opposition official, James Orengo, said the coalition would not be taking its issues to court, raising the spectre of street protests.
He hit out at international observers, including former South African President Thabo Mbeki and former US Secretary of State John Kerry, casting doubt on their credentials.
"Nobody should think this is the end of the matter," he said.
Latest Stories
-
Obed Psych and Lamisi unite on new single ‘Together Forever’
1 minute -
Kantamanto fire: Sprinter Benjamin Azamati donates GH¢10k to victims
1 minute -
BlacVolta redefining entertainment and lifestyle media in Accra’s Detty December
7 minutes -
T-bills auction: Government to raise GH¢6.35bn on January 17, 2025
12 minutes -
African Trade Chamber inducts 120 into 2025 Future Trade Leaders Fellowship
16 minutes -
I used my Zylofon money to put up a studio and invest in my career – Joyce Blessing
20 minutes -
Cloud computing market poised for rapid expansion in Nigeria, Ghana in 2025 – Report
22 minutes -
Agordzo’s misconduct makes him unfit to teach leadership at UPSA – Petitioner to GTEC
23 minutes -
The galamsey epidemic: Spreading destruction, not prosperity
25 minutes -
Inflation pressures are structural, requires complementary fiscal policy – Report
27 minutes -
The boom of EVs: Lurking dangers in transition from combustion to electric engines
28 minutes -
Crisis in Kamgbunli: Mysterious fish disease affects livelihoods
31 minutes -
GSTEP inducts 42 semi-finalists in Ashanti Region
32 minutes -
Amira Global and KNUST forge partnership to revolutionise mining practices
40 minutes -
Public reacts to promise to abolish betting tax
45 minutes