Pope Francis has urged Kenyans to unite and take a stand against the destructive effects of tribalism.
In a speech to young people in the Kenyan capital, Nairobi, he got the audience to hold hands to symbolise that they stood together as one nation.
The pontiff also made an impassioned plea against corruption, saying: "Corrupt people don't live in peace."
The BBC's reports from the Kasarani stadium, where the Pope spoke about issues affecting young people, reports that the crowd cheered wildly when he condemned corruption and urged them not to accept bribes.
Overcoming tribalism would be a daily endeavour that would require Kenyans to listen to one another to avoid division, he said.
"I want to invite you all - that we hold each other's hands - let's hold hands together, let's stand up as a sign against bad tribalism - we are all a nation."
Pope Francis also addressed radicalisation in a country which has suffered several serious attacks by Islamists from the Somalia-based al-Shabab group.
Kenya was shaken by inter-ethnic violence after elections in 2007 in which 1,200 people died.
The Pope has now landed in Uganda, and then on Sunday travels to the Central African Republic (CAR), which has been hit by serious violence between Christian and Muslim militias in recent years.
In a related development , the pontiff criticised private developers in Kangemi for grabbing land from poor people, referring to an incident earlier this year when police fired tear gas at children protesting against developers trying to take over their playground.
Kangemi, which is home to tens of thousands of people living in cramped rooms, usually without running water and basic sanitation.