Here's how thousands of anti-government protesters in Kenya took to the streets in Nairobi after the country's presidential elections.

Protests erupted in opposition strongholds in Kenya's capital Nairobi and the western city of Kisumu on Wednesday –  a day after the country's presidential elections, as a reaction to an early announcement of Tuesday's election results.
Protests erupted in opposition strongholds in Kenya's capital Nairobi and the western city of Kisumu on Wednesday – a day after the country's presidential elections, as a reaction to an early announcement of Tuesday's election results.

Fierce clashes between the police and anti-government protesters have shaken Kenya's Nairobi after presidential elections. Here's how the violence unfolded:


Residents of Nairobi took to the streets, blocked roads with burning tyres and set up barricades to protest in support of Kenyan opposition leader and presidential candidate Raila Odinga, Wednesday August 9, 2017. (AFP)



The count, which shows that President Uhuru Kenyatta won the election with a 54-percent lead, angered thousands of protesters as opposition leader Raila Odinga claimed a major hack had manipulated the results. Opposition slogans are written next to the campaign posters on Kibera slum's walls. (AFP)
The count, which shows that President Uhuru Kenyatta won the election with a 54-percent lead, angered thousands of protesters as opposition leader Raila Odinga claimed a major hack had manipulated the results. Opposition slogans are written next to the campaign posters on Kibera slum's walls. (AFP)
Anti-riot policemen deployed after protests went violent. The police dispersed protesters in Mathare, in Nairobi. (Reuters)
Anti-riot policemen deployed after protests went violent. The police dispersed protesters in Mathare, in Nairobi. (Reuters)
At least five protesters allegedly shot dead by the Kenyan police during the clashes. Relatives of protesters killed by the police mourned in an area of the Mathare slum on August 9, 2017. (AFP)
At least five protesters allegedly shot dead by the Kenyan police during the clashes. Relatives of protesters killed by the police mourned in an area of the Mathare slum on August 9, 2017. (AFP)

Police engaged in running battles with a few hundred protesters in Odinga's bastion, Kisumu, in western Kenya, firing tear gas as his supporters set tyres alight. Burning barricades also went up in Nairobi's Mathare slum. (AFP)

Some demonstrators supporting opposition leader Raila Odinga who wanted to protect their identity wore masks, after Odinga claimed
Some demonstrators supporting opposition leader Raila Odinga who wanted to protect their identity wore masks, after Odinga claimed "massive" fraud in this week's elections in Kisumu. The chairman of the election commission, Wafula Chebukat said the country's election commission had suffered a hacking attempt after the vote but that the system was not compromised. (Reuters)
An artist from the Kibera neighbourhood of Nairobi painted a section of the main street with the slogan
An artist from the Kibera neighbourhood of Nairobi painted a section of the main street with the slogan "peace wanted alive" as tensions ratcheted up in opposition strongholds. (AP)
Some protesters locked themselves behind a gate with a
Some protesters locked themselves behind a gate with a "Keep Peace" sign as others burn tyres to protest in support of Kenyan opposition leader and presidential candidate, Raila Odinga, Wednesday August 9, 2017. (AP)
A demonstrator supporting opposition leader Raila Odinga wears a mask as he protests, after Odinga claimed
A demonstrator supporting opposition leader Raila Odinga wears a mask as he protests, after Odinga claimed "massive" fraud in this week's elections, in Kisumu. (AFP)
Source: TRTWorld and agencies