Situated on the equator on Africa's east coast, Kenya has been described as "the cradle of humanity".
In the Great Rift Valley palaeontologists have discovered some of the earliest evidence of man's ancestors.
In the present day, Kenya's ethnic diversity has produced a vibrant culture but is also a source of conflict.
The Islamist militant Al-Shabab movement, active in Somalia, has also been launching a growing number of attacks in Kenya, including the 2013 Westgate shopping mall in Nairobi and the 2015 attack on Garissa University College in northwest Kenya.
Other pressing challenges include high unemployment, crime and poverty. Droughts frequently put millions of people at risk.
REPUBLIC OF KENYA: FACTS
Population: 55 million
Area: 580,367 sq km
Languages: Swahili, English
Life expectancy: 64 years (men) 69 years (women)
President: William Ruto
In August 2022, Deputy President William Ruto narrowly won the presidential election. He took 50.5% of the vote. His main rival, Raila Odinga, got 48.8% of the vote
The incumbent president Uhuru Kenyatta was not eligible for a third term under Kenya's constitution.
On 22 August, Odinga filed a petition at the Kenyan Supreme court challenging the results, but on 5 September, the Kenyan Supreme Court rejected the challenge and upheld Ruto's victory.
William Ruto had a childhood that epitomises the lives of many poor Kenyans. He went to primary school barefoot, wearing his first pair of shoes at the age of 15.
Mr Ruto ran his campaign under the banner of Kenya Kwanza, Swahili for Kenya First, with a promise to grow the economy.
Kenya's official unemployment rate for 18 to 34-year-olds is nearly 40%, and the economy is not creating enough jobs to absorb the 800,000 young people joining the workforce every year.
Ruto has promised a bottom-up approach to the economy, saying it will benefit the poor who are bearing the brunt of the cost of living crisis that has hit the world following the coronavirus pandemic and the war in Ukraine.
A handful of major commercial companies dominates the media industry, operating alongside state-owned Kenya Broadcasting Corporation (KBC).
TV is the main news source in urban areas. Internet use is high by regional standards, driven by the use of mobile devices.
The competitive press scene is the most sophisticated in the region. Newspapers are free to criticise politicians and the government.
Some key dates in Kenya's history:
c 3.3 million BC - Evidence of some of the earliest human tools have been found in Kenya, suggesting that it was the cradle of humanity from which descendants moved out to populate the world.
600 - Arabs begin settling coastal areas, over the centuries developing trading stations which facilitated contact with the Arab world, Persia and India.
1895 - Formation of British East African Protectorate.
1920 - East African Protectorate becomes crown colony of Kenya - administered by a British governor.
1944 - Kenyan African Union (KAU) formed to campaign for African independence. First African appointment to legislative council.
1947 - Jomo Kenyatta becomes KAU leader.
1952-53 - Secret Kikuyu guerrilla group known as Mau Mau begins violent campaign against white settlers. State of emergency declared, Jomo Kenyatta jailed, KAU banned.
1956 - Mau Mau rebellion put down.
1960 - State of emergency ends. Britain announces plans to prepare Kenya for majority African rule.
1961 - Jomo Kenyatta freed from two years of house arrest.
1963 - Kenya gains independence, with Mr Kenyatta as prime minister.
1964 - Republic of Kenya formed. Jomo Kenyatta becomes president and Oginga Odinga vice-president.
1978 - Kenyatta dies in office, succeeded by Daniel arap Moi.
1991 - Kenya moves to a multiparty political system after 26 years of single-party rule.
1998 - Al-Qaeda operatives bomb the US embassy in Nairobi, killing 224 people and injuring thousands.
2002 - Al-Qaeda attack on Israeli-owned hotel near Mombasa kills 10 Kenyans and injures three Israelis. A simultaneous rocket attack on an Israeli airliner fails.
2002 - Mwai Kibaki wins a landslide victory, ending Daniel arap Moi's 24-year rule
2007 - Disputed general elections are followed by deadly violence.
2009 - Kenya says that at least 10 million people, or one third of the population, are in need of food aid. The government mobilises the military to distribute food, water and medicines to areas hit hardest by drought.
2010 - Kenya joins its neighbours in forming a new East African Common Market, intended to integrate the region's economy.
2010 - New constitution designed to limit the powers of the president and devolve power to the regions approved in referendum.
2011 - Kenya intervenes in conflict in Somalia and subsequently suffers several apparent reprisal attacks, including the 2013 massacre at Westgate shopping mall in Nairobi and the 2015 attack on Garissa University College in the northwest.
2014 - At least 48 people die after al-Shabab militants attack hotels and a police station in Mpeketoni, near the island resort of Lamu.
2017 - A multi-billion-dollar railway line linking Mombasa to the capital Nairobi is opened, it is Kenya's biggest infrastructure project since independence.