Barack Obama urges Kenya to act on gay rights and corruption
President Barack Obama has mixed blunt messages to Kenya's leaders on gay rights, corruption and counter-terrorism with warm reflections on his family ties to a nation that considers him a local son.
He also foreshadowed a focus on Kenya in his post-White House life, saying, "I'll be back."
His comments during a news conference with Kenyan president Uhuru Kenyatta reflected the unusual nature of his long-awaited visit to this East African nation.
His official agenda has been sprinkled with opportunities to reconnect with his late father's sprawling Kenyan family, including some meeting the American president for the first time.
"There are cousins and uncles and aunties that show up that you didn't know existed, but you're always happy to meet," Mr Obama said. "There were lengthy explanations in some cases of the connections."
But Mr Obama did little to paper over policy differences with Kenya's government, most notably on gay rights.
He drew on his own background as an African-American, noting the slavery and segregation of the US past and saying he is "painfully aware of the history when people are treated differently under the law".
"That's the path whereby freedoms begin to erode and bad things happen," Mr Obama said. "When a government gets in the habit of treating people differently, those habits can spread."
Mr Kenyatta was unmoved, saying gay rights "is not really an issue on the foremost mind of Kenyans. And that is a fact."
A number of Kenyan politicians and religious leaders had warned Mr Obama that any overtures on gay rights would not be welcomed in Kenya, where gay sex is punishable by up to 14 years in prison. The Kenyan gay community also complains of sometimes violent harassment.
Mr Obama also pushed Kenya to tighten its counter-terrorism practices, which human rights group say have resulted in serious abuses. A Human Rights Watch report this year accused the Kenyan government of "extrajudicial killings, arbitrary detentions and torture by security forces".
"If in reaction to terrorism, you're restricting legitimate organisations, reducing the scope of peaceful organisation, then that can have the inadvertent effect of increasing the pool of recruits for terrorism," Mr Obama said.
Mr Kenyatta called the scourge of terrorism "an existential fight for us". The Somalia-based al-Shabab, which is linked to al-Qaida, has conducted major attacks in Kenya, including the 2013 attack on Nairobi's Westgate mall and an April attack in Garissa that killed nearly 150 people.
Mr Obama also urged Mr Kenyatta to keep up efforts to combat corruption, calling that the biggest potential threat to Kenya's economic growth. But he said fulfilling anti-corruption pledges will require "visible prosecutions," and told Mr Kenyatta, "People aren't stupid."
Mr Obama's trip to Kenya was the first to his father's homeland since winning the White House, as well as the first visit by a sitting American president. Despite intense security throughout Nairobi, crowds gathered to watch Mr Obama's motorcade speed through the city. American flags lined the main road from the airport and billboards heralded his arrival.
Acknowledging that some Kenyans have been frustrated that it took him until the seventh year of his presidency to visit, Mr Obama joked that he did not want the rest of Africa to think he was "playing favourites". He will also visit Ethiopia on this trip.
Mr Obama's election in 2008 was cheered in Africa, not just because of his family ties, but also because there was an expectation he would devote significant attention to the continent. Those high hopes have been met with some disappointment, given that Mr Obama's foreign policy has focused heavily on boosting ties with Asia and dealing with conflict in the Middle East.
The White House rejects that criticism, noting that Mr Obama is making his fourth trip to Africa, more than any previous president. Officials are particularly sensitive to criticism that Mr Obama's Africa policies pale in comparison to his predecessor, George W Bush, who launched a multibillion-dollar HIV/Aids programme.
Mr Obama said many of his African initiatives, including a programme to vastly increase access to power, were intended to be years-long efforts. He also credited Mr Bush's health programmes with saving millions of lives.
"I am really proud of the work that previous administrations did here in Africa, and I've done everything I could to build on those successes," he said. "This isn't a beauty contest between presidents."