NAIROBI — Kenya’s election commission posted complete results early Saturday showing that Deputy Prime Minister Uhuru Kenyatta prevailed in the country’s presidential elections by the slimmest of margins, winning 50.03 percent of the vote.
That result is likely to bring controversy in Kenya and an almost certain legal challenge from Prime Minister Raila Odinga. Kenyatta needed to break the 50 percent barrier to avoid a runoff with Odinga, but he did so by only 4,099 votes out of more than 12.3 million cast.
Monday’s presidential vote was the first since Kenya’s 2007 election sparked two months of tribe-on-tribe violence after a disputed election win was claimed by President Mwai Kibaki. More than 1,000 people were killed in attacks that included machetes, bows and arrows, and police firearms.
A win by Kenyatta could greatly affect Kenya’s relations with the West. Kenyatta faces charges at the International Criminal Court for his alleged role in directing some of Kenya’s 2007 postelection violence. His running mate, William Ruto, faces similar charges.
The United States has warned of ‘‘consequences’’ if Kenyatta, the son of Kenya’s founding father, wins, as have several European countries. Britain, which ruled Kenya up until the early 1960s, has said they would have only essential contact with the Kenyan government if Kenyatta is president. Odinga’s camp has indicated that legal challenges could be filed.