The first voters in the Kibera slum in Nairobi, Kenya, look into one of the many polling rooms at Olympic Primary just minutes before voting commences on Tuesday.
Caption

The first voters in the Kibera slum in Nairobi, Kenya, look into one of the many polling rooms at Olympic Primary just minutes before voting commences on Tuesday. / NPR

Kenyans headed to the polls on Tuesday in a presidential election pitting a veteran opposition leader against the sitting deputy president.

In a twist, outgoing Kenyan President Uhuru Kenyatta, who isn't running for reelection, threw his support behind his longtime rival, Raila Odinga, instead of his own deputy, William Ruto.

With Odinga and Ruto in a tight race, other contenders include George Wajackoyah, a candidate with some unorthodox proposals, who had been polling in a distant third place.

Kenya has been a bellwether for democracy in East Africa. A dictatorship gave way to elections in the early 2000s. But since then, some of the presidential contests have been marred by violence and irregularities.

On Tuesday, while some voters camped out at a polling station as early as 3 a.m., the election was marked by low turnout and a great deal of cynicism.

Preliminary results could begin to come out Tuesday night but an official announcement of the winner is expected to take longer.

Copyright 2022 NPR. To see more, visit https://www.npr.org.

Deputy President and presidential candidate William Ruto, center, greets supporters after casting his vote in Kenya's general election in Sugoi. Kenyans are voting to choose between opposition leader Raila Odinga and Ruto to succeed President Uhuru Kenyatta after a decade in power.
Caption

Deputy President and presidential candidate William Ruto, center, greets supporters after casting his vote in Kenya's general election in Sugoi. Kenyans are voting to choose between opposition leader Raila Odinga and Ruto to succeed President Uhuru Kenyatta after a decade in power. / AP

Presidential candidate Raila Odinga waves to his supporters after casting his vote at the Kibera Primary School.
Caption

Presidential candidate Raila Odinga waves to his supporters after casting his vote at the Kibera Primary School. / AP

A large crowd runs ahead of a motorcade shuttling presidential candidate Raila Odinga, after he cast his votes in the Kibera slum in Nairobi.
Caption

A large crowd runs ahead of a motorcade shuttling presidential candidate Raila Odinga, after he cast his votes in the Kibera slum in Nairobi. / NPR

Anne Wangiru, 43, a shopkeeper, cast her vote during the Kenyan general elections at the Ilbillis Primary School in Kajiado.
Caption

Anne Wangiru, 43, a shopkeeper, cast her vote during the Kenyan general elections at the Ilbillis Primary School in Kajiado. / AFP via Getty Images

An election official marks the nail of a voter to indicate they have cast their ballots and completed voting at a polling station in the Mathare neighborhood of Nairobi.
Caption

An election official marks the nail of a voter to indicate they have cast their ballots and completed voting at a polling station in the Mathare neighborhood of Nairobi. / NPR

Voters cast their ballots in a polling center in the Mathare neighborhood of Nairobi. Despite excitement around the city, voter turnout was unexpectedly low.
Caption

Voters cast their ballots in a polling center in the Mathare neighborhood of Nairobi. Despite excitement around the city, voter turnout was unexpectedly low. / NPR

Sam Papa, 27, didn't leave his coal store in Mathare all day. He says every election period, politicians drop off money and promises. But after elections, nothing changes. At the moment, he says, his neighbors can't afford the basics. They vote, he says, because the constitution demands it. But, in the end, he knows that Kenyans are on their own.
Caption

Sam Papa, 27, didn't leave his coal store in Mathare all day. He says every election period, politicians drop off money and promises. But after elections, nothing changes. At the moment, he says, his neighbors can't afford the basics. They vote, he says, because the constitution demands it. But, in the end, he knows that Kenyans are on their own. / NPR

After a calm day of voting, life returns to normal in the Mathare neighborhood of Nairobi.
Caption

After a calm day of voting, life returns to normal in the Mathare neighborhood of Nairobi. / NPR

Independent Electoral and Boundaries Commission officials count votes at the Mathare North Social Hall polling station during the presidential election in Nairobi.
Caption

Independent Electoral and Boundaries Commission officials count votes at the Mathare North Social Hall polling station during the presidential election in Nairobi. / Bloomberg via Getty Images

Electoral Commission Officials count votes inside a polling station after the official closing of the polls during Kenya's general election at Mathare Social Hall in Nairobi.
Caption

Electoral Commission Officials count votes inside a polling station after the official closing of the polls during Kenya's general election at Mathare Social Hall in Nairobi. / AFP via Getty Images