Nairobi ( ) (Jiji kuu la Nairobi, in Swahili), is the capital and largest city of Kenya, located in the south-central part of the country. As of 2026, it has a population of 5.6 million and a metropolitan population of 15.95 million, making it the 8th most populous city in Africa and the 4th most populous metropolitan area. The city goes beyond its borders and has expanded into neighbouring counties, making it the 4th largest metropolitan area in Africa.

Nicknamed the "Green City under the Sun", Nairobi is uniquely notable for being the only capital city in the world that hosts a national park within its boundaries. Its name originates from the Maasai phrase Enkare Nyirobi, meaning "place of cool waters".

As the national capital, Nairobi is home to the Kenyan Parliament Buildings, the State House and the Supreme Court Building. It is the major financial and economic hub of East Africa, hosting thousands of Kenyan businesses and international companies and organisations, including the United Nations Environment Programme (UN Environment) and the United Nations Office at Nairobi (UNON). The Nairobi Securities Exchange (NSE) is one of the largest stock exchanges in Africa and the second-oldest exchange on the continent. It is Africa's fourth-largest stock exchange by trading volume, capable of processing 10 million trades a day. Nairobi is considered a global city and was ranked as a "Beta World City" by the Globalisation and World Cities Research Network as of 2024.

Nairobi was founded in 1898 by colonial authorities in British East Africa, as a rail depot on the Uganda–Kenya Railway. The authorities favoured it as an ideal resting place due to its high elevation, temperate climate, and adequate water supply.Roger S. Greenway, Timothy M. Monsma, Cities: missions' new frontier, (Baker Book House: 1989), p.163. The town quickly grew to replace Mombasa as the capital of Kenya in 1907.

After independence in 1963, Nairobi became the capital of the Republic of Kenya. During Kenya's early period, the city became a centre for the coffee, tea and sisal industries. Successive post-independence governments have built and turned Nairobi into a modern metropolitan city with a diverse population and a growing economy.

History

Early years

The site of Nairobi was originally a swamp land occupied by a pastoralist people, the Maasai, the long-distance trader community, Akamba People, as well as the agriculturalist Kikuyu people.Donald B. Freeman, City of Farmers: Informal Urban Agriculture in the Open Spaces of Nairobi, Kenya, McGill-Queen's Press – MQUP, 1 March 1991 The name Nairobi comes from the Maasai expression meaning 'cool waters'. referring to the cold water stream which flowed through the area.Frédéric Landy, From Urban National Parks to Natured Cities in the Global South: The Quest for Naturbanity, Springer, 20 Jul 2018, p.50 With the arrival of the Uganda Railway, the site was identified by Sir George Whitehouse for a store depot, shunting ground and camping ground for the Indian labourers working on the railway.Anne-Marie Deisser, Mugwima Njuguna, Conservation of Natural and Cultural Heritage in Kenya, UCL Press, 7 Oct 2016, p.76

Whitehouse, chief engineer of the railway, favoured the site as an ideal resting place due to its high elevation, temperate climate, adequate water supply and being situated before the steep ascent of the Limuru escarpments.Anne-Marie Deisser, Mugwima Njuguna, Conservation of Natural and Cultural Heritage in Kenya, UCL Press, 7 Oct 2016, p.76 His choice was criticised by officials within the Protectorate government who felt the site was too flat, poorly drained and relatively infertile.

In the pre-colonial era, the people of modern Kenya mostly lived in villages amongst their tribes and cultural groups, where they had rulers within their communities rather than one singular government or leader.

In 1898, Arthur Church was commissioned to design the first town layout for the railway depot. It constituted two streets – Victoria Street and Station Street, ten avenues, staff quarters and an Indian commercial area. The railway arrived at Nairobi on 30 May 1899, and soon Nairobi replaced Machakos as the headquarters of the provincial administration for the Ukamba province.Roman Adrian Cybriwsky, Capital Cities around the World: An Encyclopedia of Geography, History, and Culture, ABC-CLIO, USA, 2013, p. 303The Eastern Africa Journal of Historical and Social Sciences Research, Volume 1, Indiana University, 8 Publishers, 1996

On the arrival of the railway, Whitehouse remarked that "Nairobi itself will in the course of the next two years become a large and flourishing place and already there are many applications for sites for hotels, shops and houses." The town's early years were however beset with problems of malaria leading to at least one attempt to have the town moved. In the early 1900s, Bazaar Street, now Biashara Street, was completely rebuilt after an outbreak of plague and the burning of the original town.

Between 1902 and 1910, the town's population rose from 5,000 to 16,000 and grew around administration and tourism, initially in the form of big game hunting.Sana Aiyar, Indians in Kenya: The Politics of Diaspora, Harvard University Press, 2015, p.42 In 1907, Nairobi replaced Mombasa as the capital of the East Africa Protectorate.Claire C. Robertson, Trouble Showed the Way: Women, Men, and Trade in the Nairobi Area, 1890–1990, Indiana University Press, 1997, p.16 In 1919, Nairobi was declared to be a municipality.Britannica, Nairobi , britannica.com, USA, accessed on July 7, 2019

Growth In 1921, Nairobi had 24,000 residents, of which circa 12,000 were native Africans.Garth Andrew Myers, Verandahs of Power: Colonialism and Space in Urban Africa, Syracuse University Press, 2003 The next decade saw growth in native African communities in Nairobi, and they began to constitute a majority for the first time. This growth caused planning issues, described by Thorntorn White and his planning team as the "Nairobi Problem". In February 1926, colonial officer Eric Dutton passed through Nairobi on his way to Mount Kenya, and said of the city:

After World War II, continuous expansion of the city angered both the indigenous Maasai and Kikuyu.Elkins, Caroline. Britain's Gulag: The Brutal End of Empire in Kenya. United Kingdom, Pimlico, 2005. This led to the Mau Mau Uprising in the 1950s, and the Lancaster House Conferences, which initiated a transition to Kenyan independence in 1963.

In the spring of 1950, the East African Trades Union Congress (EAUTC) led a nine-day general strike in the city.

Post independence

Nairobi remained Kenya's capital after independence, and its continued rapid growth put pressure on the city's infrastructure, with power cuts and water shortages becoming a common occurrence.

In September 1973, the Kenyatta International Conference Centre (KICC) was opened to the public. The 28-story building at the time was designed by the Norwegian architect Karl Henrik Nøstvik and Kenyan David Mutiso. It is the only building within the city with a helipad that is open to the public. Of the buildings built in the Seventies, the KICC was the most eco-friendly and most environmentally conscious structure. Its main frame was constructed with locally available materials like gravel, sand, cement and wood, and it had wide open spaces which allowed for natural aeration and lighting. Cuboids made up the plenary hall, the tower consisted of a cylinder composed of several cuboids, and the amphitheatre and helipad both resembled cones. The tower was built around a concrete core, and it had no walls but glass windows, which allowed for maximum natural lighting. It had the largest halls in eastern and central Africa."Our History" , The Kenyatta International Convention Centre.

In 1972, the World Bank approved funds for further expansion of the then Nairobi Airport (now Jomo Kenyatta International Airport), including a new international and domestic passenger terminal building, the airport's first dedicated cargo and freight terminal, new taxiways, associated aprons, internal roads, car parks, police and fire stations, a State Pavilion, airfield and roadway lighting, fire hydrant system, water, electrical, telecommunications and sewage systems, a dual carriageway passenger access road, security, drainage and the building of the main access road to the airport (Airport South Road). The cost of the project was more than US$29 million, US$111.8 million in 2013 dollars. On 14 March 1978, construction of the terminal building was completed on the other side of the airport's single runway and opened by President Jomo Kenyatta less than five months before his death. The airport was renamed Jomo Kenyatta International Airport in memory of its first president.

The United States Embassy, then located in downtown Nairobi, was bombed in August 1998 by Al-Qaeda and the Egyptian Islamic Jihad, as one of a series of US embassy bombings. It is now the site of a memorial park.

21st century

In November 2012, President Mwai Kibaki opened the KES 31 billion Thika Superhighway. This mega-project in Kenya started in 2009 and ended in 2011. It involved expanding the four-lane carriageway to eight lanes, building underpasses, providing interchanges at roundabouts, erecting flyovers and building underpasses to ease congestion. The 50.4-kilometre road was built in three phases: Uhuru Highway to Muthaiga Roundabout; Muthaiga Roundabout to Kenyatta University and; Kenyatta University to Thika Town."Kibaki to officially open Sh30bn Thika superhighway" , The Nation, 5 November 2012.

In May 2017, President Uhuru Kenyatta inaugurated the Standard Gauge Railway, which connects Nairobi to Mombasa. It was primarily built by a Chinese firm with about 90% of total funding from China and about 10% from the Kenyan government. A second phase is also being built, which will link Naivasha to the existing route and also the Uganda border.

In August 2020, Nairobi County Assembly Speaker Beatrice Elachi resigned. In December 2020, recently elected Nairobi County Assembly Speaker Benson Mutura was sworn in as acting Nairobi Governor four days after the previous Nairobi Governor Mike Sonko was impeached and removed from office. At the time of Mutura's swearing in as acting Governor, which he will hold for at least 60 days, Nairobi did not have a Deputy Governor as well. Nairobi has seen several major infrastructure projects in the 2020s. The Nairobi Expressway, completed in 2022, was developed to reduce traffic congestion along Mombasa Road. In 2021, the Green Park Bus Terminal, part of efforts to improve public transport, began operations. In line with the Kenyan government's Affordable Housing Program, various housing developments are underway to accommodate the city's growing population.

Geography

Nairobi is situated at and and occupies .

Nairobi is situated between the cities of Kampala and Mombasa. As Nairobi is adjacent to the eastern edge of the Rift Valley, minor earthquakes and tremors occasionally occur. The Ngong Hills, located to the west of the city, are the most prominent geographical feature of the Nairobi area. Mount Kenya is situated north of Nairobi, and Mount Kilimanjaro is towards the south-east.

The Nairobi River and its tributaries traverse through the Nairobi County and join the larger River Athi on the eastern edge of the county.

Nobel Peace Prize laureate Wangari Maathai fought fiercely to save the indigenous Karura Forest in northern Nairobi, which was under threat of being replaced by housing and other infrastructure.