Uhuru or Odinga? Supreme Court ruling today

Deputy Chief Justice Philomena Mwilu, Chief Justice David Maraga and Justice Mohamed Ibrahim at the Supreme Court. NATION MEDIA GROUP

Kenya's Supreme Court will rule Friday on whether last month's presidential election, which the opposition claims was riddled with irregularities, will be annulled or upheld.

Days of sporadic protests erupted after President Uhuru Kenyatta, 55, was declared the winner of the August 8 vote with 54 percent, leading to the deaths of at least 21 people.

Opposition candidate Raila Odinga, 72, alleged fraud and took his complaints to the seven Supreme Court judges, and some Kenyans fear renewed protests if he loses his attempt to overturn the result.

It is the third time in a row that Odinga has cried foul, after claiming he was cheated out of rightful victories in 2007 and 2013.

The disputed 2007 election led to politically motivated ethnic violence in which over 1,100 people were killed. In 2013 Odinga took his grievances to court and lost.

After hearing closing arguments Tuesday from lawyers for the National Super Alliance (NASA) opposition coalition, the Independent Electoral and Boundaries Commission (IEBC) and Kenyatta, Chief Justice David Maraga said a judgment would be delivered Friday.

The court's ruling is final and will lead to either confirmation of Kenyatta's victory, after which he will be sworn in on September 12, or an annulment of the result that would require a new election within 60 days.