Eager to avoid a repeat
In a nation with fierce ethnic loyalties, Kenyans were eager to avoid a repeat of the last election.
At the time, the nation plunged into ethnic violence after Odinga disputed results that declared the incumbent president, Mwai Kibaki, as the winner, alleging the election had been rigged.
Ethnic groups loyal to each side took to the streets, where supporters of both camps fought one another. More than 1,200 people were killed and hundreds of thousands displaced.
But despite the divisive vote this year, some citizens said it is time to move forward.
"The people have spoken, even though my voice was not one of them," said Jane Nduku, a Nairobi resident.
Kenyatta's win at age 51 makes him the nation's youngest president.