Kenya is a republic with three branches of government: an executive branch, led by a directly elected president; a bicameral parliament consisting of the Senate and National Assembly; and a judiciary. In the 2017 general elections, the second under the 2010 constitution, citizens cast ballots for president, deputy president, and parliamentarians, as well as county governors and legislators. International and domestic observers judged the elections generally credible, although some civil society groups and the opposition alleged there were irregularities. The Independent Electoral and Boundaries Commission declared Jubilee Coalition Party candidate Uhuru Kenyatta had won re-election as president over opposition candidate Raila Odinga. The Supreme Court subsequently annulled the results for president and deputy president, citing irregularities, and the court ordered a new vote for president and deputy president that the opposition boycotted. The Independent Electoral and Boundaries Commission declared President Kenyatta winner of the new vote, and the Supreme Court upheld the results.
The National Police Service maintains internal security and reports to the Ministry of Interior and Coordination of National Government. The National Intelligence Service collects intelligence internally as well as externally and reports directly to the president. The Kenya Defense Forces report to the Ministry of Defense and are responsible for external security but have some domestic security responsibilities, including border security and supporting civilian organizations in the maintenance of order, including post disaster response. Civilian authorities at times did not maintain effective control over the security forces. Members of the security forces committed numerous abuses.
Significant human rights issues included: unlawful or arbitrary killings, including extrajudicial killings by the government or on behalf of the government and by the terrorist group al-Shabaab; forced disappearances by the government or on behalf of the government and by al-Shabaab; torture and cases of cruel, inhuman, or degrading treatment or punishment by the government; harsh and life-threatening prison conditions; arbitrary arrest and detention by the government; arbitrary interference with privacy; serious interference with the freedom of peaceful assembly and freedom of expression; serious acts of corruption; lack of investigation and accountability for violence against women and girls; and the existence and use of laws criminalizing consensual same-sex sexual conduct between adults.
The governmental Independent Policing Oversight Authority, established to provide civilian oversight of police, investigated numerous cases of misconduct. Impunity at all levels of government continued to be a serious problem. The government took limited and uneven steps to address cases of alleged unlawful killings by security force members, although the Independent Policing Oversight Authority continued to refer cases of police misconduct to the Office of the Director of Public Prosecutions for prosecution. Impunity in cases of alleged corruption was also common.
Al-Shabaab staged deadly attacks on isolated communities along the border with Somalia, targeting both security forces and civilians. In January militants carried out five attacks, killing more than a dozen persons, including three teachers and four children. The government continued to prioritize investigations and prosecutions of terrorist activities. Human rights groups alleged security forces committed abuses, including extrajudicial killings, while conducting counterterror operations.