The Kenyan Supreme Court on Saturday upheld Uhuru Kenyatta's victory in the presidential election, dismissing a challenge by his chief rival and ending a drawn-out case that has riveted the nation.
The nation's highest court declared the election "free and fair," ending weeks of uncertainty after the disputed March 4 poll.
Kenyatta, the 51-year-old son of Kenya's founding leader, won the election with 50.07% of the vote.
Raila Odinga, who got 43.31%, had challenged the outcome in court on the grounds that it was flawed and marred by technical problems.
After the court issued its ruling, he said he accepted its judgment and would abide by it.
"The court has now spoken," Odinga said, "I wish the president-elect and his team well."
Odinga said his petition focused on valid failures in the election process.
"My decision to file a petition in the Supreme Court to challenge the validity of the election was a testament of my faith in the independence of our judiciary," he said. "I did so for the sake of our democracy and for the sake of all Kenyans."
Kenyatta will be sworn in April 9, making him the nation's fourth and youngest president.
Kenyatta and Odinga are the sons of the nation's first president and vice president, respectively, bringing back memories of a political dynasty that dates to the 1960s.
Their fathers started out as allies in the quest for Kenyan independence from Britain.
But the elder politicians' relationship ended in bad blood when founding President Jomo Kenyatta forced out his vice president, Jaramogi Odinga, following a series of disputes.
Some five decades later, it is the sons' turn in the spotlight.
Last week, both leaders pledged to accept the court's decision, assuring citizens that the ruling would end the uncertainty in the nation.
A peaceful response will go a long way toward restoring the nation's image as a bastion of stability in the region after disputed election results led to bloody chaos in 2007.
In that election, more than 1,200 were killed and hundreds of thousands displaced after Odinga disputed the results, which showed incumbent President Mwai Kibaki as the winner.
At the time, supporters of both candidates battled on the streets with crude weapons, not in court.
The outgoing president urged citizens to honor the court ruling and shun violence.
"As the country awaits the Supreme Court ruling, I call upon all of us to accept the ruling and maintain peace," Kibaki said Thursday. "Kenyans should resume their routine economic activities as soon as possible to return normalcy in the country."
The March 4 election was the first general poll since the disputed election. It was conducted under a reformed judicial system and a more inclusive electoral commission.
The significance of Kenya's democratic process extends beyond the country's borders.
Kenya is East Africa's biggest economy and a crucial trade route into the rest of the continent.
It provides an important buffer of stability in a region that includes the fledgling Somali government and the politically tense Sudan and South Sudan.
Kenya is also a major U.S. ally in the war against Islamist militants in the region and has remained relatively peaceful amid civil wars in neighboring nations.
The upholding of Kenyatta's victory raises the prospect of complicated diplomatic ties with the West.