Nairobi the capital of Kenya in 1907. After independence in 1963, Nairobi became the capital of the Republic of Kenya. During Kenya's colonial period, the city became a centre for the colony's coffee, tea and sisal industry. The city lies on the River Athi in the southern part of the country, and has an elevation of above sea level. With a population of 3.36 million in 2011, Nairobi is the second-largest city by population in the African Great Lakes region after Dar es Salaam, Tanzania. According to the 2009 census, in the administrative area of Nairobi, 3,138,295 inhabitants lived within .
History of Nairobi plague and the subsequent burning down of the original town. By 1905, Nairobi was a humming commercial center and replaced Mombasa as capital of the British East Africa. The city expanded, supported by the growth in administrative functions and in tourism, initially in the form of British big game hunting. As the British colonialists explored the region, they began using Nairobi as their first stop. This prompted the colonial government to build several grand hotels in the city for British tourists and big game hunters. Nairobi continued to grow under British rule, and many Britons settled within the city's suburbs.