Kenya, officially the Republic of Kenya (Jamhuri ya Kenya), is a country in Africa with 47 semiautonomous counties governed by elected governors. At 580,367 km2, Kenya is the world's 48th largest country by total area. With a population of more than 52.2 million people, Kenya is the 27th most populous country. Kenya's capital and largest city is Nairobi while its oldest city and first capital is the coastal city of Mombasa. Kisumu City is the third largest city and a critical inland port at Lake Victoria. Other important urban centres include Nakuru and Eldoret.
Nilotic-speaking pastoralists (ancestral to Kenya's Nilotic speakers) started migrating from present-day Southern Sudan into Kenya around 500 BC. European colonisation of Kenya began in the 19th century during the European exploration of the interior. The modern-day Kenya emerged from a protectorate established by the British Empire in 1895 and the subsequent Kenya Colony, which began in 1920. Numerous disputes between Great Britain and the colony led to the Mau Mau revolution, which began in 1952, and the subsequent declaration of independence in 1963. After independence, Kenya remained a member of the Commonwealth of Nations. The current constitution was adopted in 2010 to replace the 1963 independence constitution.
Kenya is a presidential representative democratic republic, in which elected officials represent the people and the president is the head of state and government. Kenya is a member of United Nations, World Bank, International Monetary Fund, COMESA, and other international organisations. With a GNI of 1,460, Kenya is a lower-middle-income economy. Kenya's economy is the largest in eastern and central Africa, with Nairobi serving as a major regional commercial hub. Agriculture is the largest sector; tea and coffee are traditional cash crops, while fresh flowers are a fast-growing export. The service industry is also a major economic driver, particularly tourism. Kenya is a member of the East African Community trade bloc, though some international trade organisations categorise it as part of the Greater Horn of Africa. Africa is Kenya's largest export market, followed by the European Union.
The Republic of Kenya is named after Mount Kenya. The earliest recorded version of the modern name was written by German explorer Johann Ludwig Krapf in the 19th century. While travelling with a Kamba caravan led by the legendary long distance trader Chief Kivoi, Krapf spotted the mountain peak and asked what it was called. Kivoi told him "Kĩ-Nyaa" or "Kĩĩma- Kĩĩnyaa" probably because the pattern of black rock and white snow on its peaks reminded them of the feathers of the cock ostrich. The Agikuyu, who inhabit the slopes of Mt. Kenya, call it Kĩrĩma Kĩrĩnyaga in Kikuyu, while the Embu call it "Kirenyaa." All three names have the same meaning.
Ludwig Krapf recorded the name as both Kenia and Kegnia. Others say that this was—on the contrary—a very precise notation of a correct African pronunciation. An 1882 map drawn by Joseph Thompsons, a Scottish geologist and naturalist, indicated Mt. Kenya as Mt. Kenia, 1862. The mountain's name was accepted, pars pro toto, as the name of the country. It did not come into widespread official use during the early colonial period, when the country was instead referred to as the East African Protectorate. It was changed to the Colony of Kenya in 1920.