Nairobi: The Green City in the Sun
Nairobi is the capital of Kenya, a high city of gardens and game parks. It stands 1,795 metres up, only 140 kilometres south of the equator.
Nairobi began as a railway depot in 1899, and it grew into the capital of British East Africa in 1907, then into the capital of an independent Kenya in 1963. Today it is the largest city in East Africa, a place where glass towers look out over a national park, and where lions hunt within sight of office blocks. The city sits on the central highlands, cool where the coast is hot, and it works as the gateway to almost every safari in Kenya. Most visitors pass through Nairobi on their way to the Masai Mara or Amboseli, but the city itself holds a national park, two famous animal centres, museums of human origins and a forest saved by a Nobel laureate.
Quick Facts
- Settlement: Nairobi, the capital of Kenya and the largest city in East Africa
- Position: on the central highlands of southern Kenya, about 480 km by road north-west of Mombasa
- Height above sea level: about 1,795 m, which keeps the air cool all year
- Residents: 4,397,073 in Nairobi County by the 2019 census, with about 5 million in the wider city
- Founded: 1899, as a depot on the Uganda Railway
- Became capital: 1907, when it replaced Mombasa as the seat of British East Africa
- Time zone: East Africa Time, three hours ahead of Greenwich Mean Time
- Money: the Kenyan shilling, with mobile money used everywhere
- Closest World Heritage property: Mount Kenya National Park, ref 800, about 139 km straight-line to the north-east
Geography of Nairobi
Nairobi stands on the central highlands of southern Kenya, on a plateau that runs between the Ngong Hills to the west and the Athi-Kapiti plains to the south. The city lies at about 1,795 m above sea level, and the height is the reason Nairobi feels cool where Mombasa, on the coast, feels hot. Daytime temperatures in Nairobi usually sit between 20 and 25 degrees, and the nights fall below 15 degrees, so the city has one of the most comfortable climates of any African capital. The equator runs only about 140 km to the north, yet the altitude cancels the heat that the latitude would promise.
The rivers of Nairobi are small, and the city takes its name from the Maasai phrase Enkare Nairobi, the place of cool waters. The Nairobi River runs through the centre of the city, and the Athi River flows to the south, past the national park and out onto the plains. The ground under the city is old volcanic rock, and the plateau is broken by valleys and ridges that give the suburbs their shape. To the west, the Ngong Hills rise in a long ridge, and their peaks reach about 2,000 m, with a walking trail along the crest and a wide view back over the city.
The green heart of Nairobi is its forest and its national park. Nairobi National Park lies just south of the centre, about 7 km from the city, and it covers 117 square kilometres of grassland, dry forest and marsh. It is the only national park in the world that borders a capital city, and from its plains a visitor can photograph a lion with the towers of the city behind it.
The northern, eastern and western edges of the park are fenced, while the southern side opens onto the Athi-Kapiti plains, so the animals can move freely in and out. Karura Forest, to the north of the city, is the largest urban forest in Nairobi, with walking and cycling trails, waterfalls and caves. The forest covers about 1,000 ha, and its caves were used as hideouts in the Mau Mau years, and it survived because of the campaign of Wangari Maathai, who won the Nobel Peace Prize in 2004.
The climate of Nairobi turns on two rainy seasons. The long rains fall from March to May, and the short rains fall from October to December, and between them the dry months run from June to September, when the days are sunny and the nights are cold. The city is greenest just after the rains, when the jacaranda trees flower purple across the suburbs, and the parks fill with people on the weekends. Nairobi is called the Green City in the Sun, and the name fits, because the trees and the gardens are part of the city rather than an afterthought, and the national park keeps the wild inside the city limits.
The neighbourhoods of Nairobi spread widely, and each one has its own character. The centre holds the government offices, the banks and the Kenyatta International Convention Centre, with its round tower and its viewing deck. Westlands, to the north-west, is the business and nightlife district, with offices, hotels and restaurants.
Karen and Langata, to the south-west, are leafy suburbs of gardens and museums, and they hold the Giraffe Centre and the Sheldrick Elephant Nursery. Kibera, to the south-west, is one of the largest informal settlements in Africa, and it is a reminder that the city holds great wealth and great poverty side by side. Eastleigh, to the east, is the trading quarter of the Somali community, with markets that run late into the night. Kilimani, to the west of the centre, is the district of cafes and of apartments, and it is where the young professionals of the city live.

The skyline of Nairobi, the Green City in the Sun — CC BY-SA 4

The Ngong Hills west of the city — Siegmund Kamau, CC BY-SA 3

A waterfall in Karura Forest — Mamaoke, CC BY-SA 4
History of Nairobi
Nairobi began in 1899, when the builders of the Uganda Railway reached a swampy plain at mile 327 from Mombasa and set up a depot there. The place was a watering stop for the trains, and the railway workers built a town of corrugated iron around it, with a station, a market and a few hotels. The town grew fast, because the railway needed offices and workshops, and the settlers needed shops and houses, and by 1900 Nairobi had a post office, a bank and a church. The early town was rough, with dust in the dry season and mud in the rains, and it burned down more than once, but it kept growing because the railway ran through it.
The town became the capital of British East Africa in 1907, when the colonial government moved from Mombasa to Nairobi. The move was made because Nairobi stood on the cool highlands, and the Europeans preferred its climate to the heat of the coast, and because it sat at the centre of the railway line, where the trains to the lake and to the coast met. The new capital grew through the 1910s and 1920s, with government buildings, hotels and a railway station, and it became the centre of the European settler community in Kenya, with clubs, schools and hospitals of its own. Nairobi was recognised as a city in 1950, and by then it held the banks, the newspapers and the courts of the colony.
The emergency of the 1950s was fought in the streets of Nairobi as much as in the forests. In April 1954 the colonial government sealed the city in Operation Anvil, screened tens of thousands of Kikuyu residents, and detained thousands in camps outside the town.
The curfews and the patrols made Nairobi a city under siege, and the uprising forced Britain to negotiate, even though it did not win independence at once. Kenya became independent on 12 December 1963, with Nairobi as the capital of the new republic. The population of the city was about 300,000 at independence, and it has grown to more than 4 million since.
After independence, Nairobi became the diplomatic capital of East Africa. The city is the home of the United Nations Environment Programme and the United Nations Human Settlements Programme, the only two United Nations agencies with their headquarters in Africa, and it hosts the regional offices of dozens of international bodies. The city also became the financial and technological centre of the region, with banks, insurers and technology companies, and with a start-up community that calls itself the Silicon Savannah. The most famous product of that community is M-Pesa, the mobile money service that launched in 2007, and that changed how Kenyans move money, and became a model for developing countries around the world.
The cultural history of Nairobi is tied to the people who lived there, and the best known is Karen Blixen, the Danish author of Out of Africa, who lived at Karen, on the edge of the city, from 1914 to 1931. Her house is now the Karen Blixen Museum, and it is one of the most visited cultural sites in the city, because the book and the film carried the image of Nairobi into popular culture around the world. The National Museum of Kenya, in the centre of the city, holds the fossil collection from Lake Turkana, including the skull of the Turkana Boy, and it tells the story of human origins in the country where some of the oldest human fossils were found. Nairobi today is a young city, with students, artists and entrepreneurs, and it is the creative centre of East Africa.
Travel to Nairobi
The railway is the oldest way into Nairobi, and the city began as a depot on the line from Mombasa. The standard gauge railway now runs from Nairobi to Mombasa in about five hours, on a line completed in 2017, and the old colonial station still stands in the centre. The Nairobi Expressway, opened in 2022, runs above the old highway from the airport to the west of the city. The drive to the Masai Mara takes five to six hours, and the flight from Wilson Airport takes about 45 minutes, and the Mara is the northern end of the Serengeti of Tanzania.
A day in Nairobi usually starts with the national park. The half-day safari in Nairobi National Park is the most popular outing in the city, and it runs in the morning or the afternoon, with lions, rhinos and buffalo in view of the towers. The park is the first national park of Kenya, established in 1946, and it is an important refuge for the black rhino.
The morning safari is often combined with the Giraffe Centre and the Sheldrick Elephant Nursery, both in Langata, near the park. The Giraffe Centre, founded in 1979, protects the endangered Rothschild giraffe, and visitors can feed the animals from a raised platform. The Sheldrick Elephant Nursery, founded in 1977, raises orphaned elephants before releasing them into Tsavo, and it opens to the public at the midday feeding time.
The museums of Nairobi fill the middle of the day. The Karen Blixen Museum, in the suburb of Karen, keeps the house and the garden of the Danish author as they were, and it is a quiet place after the noise of the city. The National Museum of Kenya, in the centre, holds the fossil collection from Lake Turkana, the birds and the butterflies of the country, and the ethnographic galleries of the peoples of Kenya.
The Kenyatta International Convention Centre has a viewing deck on its top floor, and it gives the best view of the city, from the towers of the centre to the hills of Ngong. The Maasai Market, which moves between the city centre and the suburbs through the week, sells beadwork, carvings and cloth, and it is the best place in the city to buy a souvenir.
Nairobi is the starting point for almost every safari in Kenya, and most visitors spend one or two days in the city before they leave for the Masai Mara or Amboseli. The city has hotels for every budget, from the old Norfolk Hotel, which opened in 1904 and hosted the hunters and the writers of the colonial years, to the new towers of Westlands and the lodges of Karen. The restaurants of the city serve the food of Kenya and of the world, with nyama choma, the grilled meat of the country, as the dish most visitors try first. Nairobi is safe enough for a careful visitor, and the usual rules apply: stay on the main roads, avoid walking alone at night, and use a taxi or a hotel car rather than walking in unfamiliar areas.

A giraffe at the Giraffe Centre — GioRan, CC BY-SA 4

Baby elephants at the Sheldrick nursery — CakeForBreakfast, CC BY-SA 4
Notable Places in Nairobi
- Nairobi National Park. The first national park of Kenya, established in 1946, with a dam where the hippos gather and with a sanctuary for the black rhino. The park is the place where the ivory of poachers was burned in 1989, and it is the most popular half-day safari from the capital.
- Giraffe Centre. A conservation centre in Langata, founded in 1979, that protects the endangered Rothschild giraffe. Visitors can feed the giraffes from a raised platform and learn about the breeding programme, and the centre is the most popular family outing in Nairobi.
- Sheldrick Elephant Nursery. A nursery in Langata, founded in 1977, that raises orphaned elephants before releasing them into Tsavo. It opens to the public at the midday feeding time, and it is one of the best known elephant projects in the world.
- Karen Blixen Museum. The house of the Danish author of Out of Africa, who lived in Nairobi from 1914 to 1931. The house and the garden are kept as they were, and the museum is one of the most visited cultural sites in the city.
- National Museum of Kenya. The largest museum in Kenya, in the centre of Nairobi, with the fossil collection from Lake Turkana, including the skull of the Turkana Boy. The museum also holds the birds, the butterflies and the ethnographic galleries of the peoples of Kenya.
- Karura Forest. The largest urban forest in Nairobi, to the north of the city, with walking and cycling trails, waterfalls and caves. The forest was saved by the campaign of Wangari Maathai, who won the Nobel Peace Prize in 2004.
- Kenyatta International Convention Centre. The round tower in the centre of the city, with a helipad on the roof and with conference halls that host the meetings of the country. The tower was built in the 1970s, and it is the landmark of the city centre.
- Ngong Hills. A long ridge to the west of the city, with peaks of about 2,000 m and a walking trail along the crest. The hills give a wide view back over Nairobi, and they are the setting of the opening of Out of Africa.
- Maasai Market. A market that moves between the city centre and the suburbs through the week, selling beadwork, carvings and cloth. It is the best place in Nairobi to buy a souvenir, and the bargaining is part of the visit.
- Bomas of Kenya. A cultural centre to the south-west of the city, with the traditional houses of the peoples of Kenya and with dances and music in the afternoon. It is a good introduction to the cultures of the country before a safari.

The first national park of Kenya, established in 1946, with a dam where the hippos gather and with a sanctuary for the black rhino — Public domain

The Karen Blixen Museum house and garden — Alexander Leisser, CC BY-SA 4

The National Museum of Kenya — Mike W., CC BY-SA 2

The Kenyatta International Convention Centre tower — Bahnfrend, CC BY-SA 4
Frequently Asked Questions
How many days should I spend in Nairobi?
One or two days are enough for the city itself, and most visitors spend that time on the national park, the Giraffe Centre and the museums. A third day lets you walk Karura Forest and visit the Ngong Hills, and a fourth day is better spent on safari in the Masai Mara.
Is Nairobi safe for visitors?
Nairobi rewards a visitor who plans the day around its neighbourhoods: the CBD is busy and walkable in daylight, while Karen, Westlands and the park gates feel settled after dark. Avoid unlit side streets and the matatu stages at night, and keep a phone and a wallet out of sight on crowded pavements. Hotels and the national park entrance run their own security checks, and a booked taxi is the normal way home after dinner.
How do I get from Nairobi to the Masai Mara?
The Masai Mara lies about 270 km by road to the south-west of Nairobi, and the drive takes five to six hours. The flight from Wilson Airport takes about 45 minutes, and it lands on the airstrips inside the reserve. Most visitors fly one way and drive the other.
What is the best time to visit Nairobi?
Nairobi sits at 1,795 metres, so the city never gets truly hot: mornings are cool enough for a jacket even in January, and the warmest afternoons land in February and March. The long rains fall from March to May, turning the city green and the park muddy, while the dry months from June to September give the clearest skies for the rooftop views. The short rains of October to December are brief afternoon showers, and the city runs on the same rhythm all year.
Can I see wildlife without leaving Nairobi?
Yes, and that is what makes the city different from any other capital. Nairobi National Park lies 7 km south of the centre, and lions, rhinos and buffalo live there within sight of the towers. The Giraffe Centre and the Sheldrick Elephant Nursery are in Langata, near the park.
Where should I stay in Nairobi?
Westlands suits business travellers, with offices, hotels and restaurants, and Karen suits safari travellers, with lodges and gardens near the Giraffe Centre. The city centre suits a short stay, with the museums and the convention centre close by, and the hotels of the centre are the oldest in the city.
Verified
- The Wikidata record Q3870 describes Nairobi as a big city and a capital city, with coordinates 1.2864 degrees south and 36.8172 degrees east, and the live record returned by the Wikidata service matches those values. The record places the city in Kenya, Q114.
- Nairobi County counted 4,397,073 people in the 2019 census, and the wider city holds about 5 million people. The city stands about 1,795 m above sea level, and the equator lies about 140 km to the north.
- Nairobi began as a railway depot in 1899, became the capital of British East Africa in 1907, and was recognised as a city in 1950. Kenya became independent on 12 December 1963, with Nairobi as its capital.
- Mount Kenya National Park was inscribed in 1997 as ref 800, under criteria (vii) and (ix), and it was extended in 2013 to add the Lewa Wildlife Conservancy and the Ngare Ndare Forest Reserve. The mountain rises to 5,199 m, and UNESCO puts it about 193 km by road north-east of Nairobi, which is about 139 km in a straight line.
- The Kenya Lake System was inscribed in 2011 as ref 1060, under criteria (vii), (ix) and (x), and it holds three alkaline lakes, Bogoria, Nakuru and Elementaita. The lakes lie to the north-west of Nairobi, in the floor of the Great Rift Valley, and the property page publishes no component coordinates, so no single nearest-lake distance is stated here.
- Nairobi National Park was established in 1946, and it covers 117 square kilometres about 7 km south of the centre. It is the first national park of Kenya, and the only national park in the world that borders a capital city.
- The Giraffe Centre was founded in 1979, and the Sheldrick Elephant Nursery was founded in 1977. Karen Blixen lived in Nairobi from 1914 to 1931, and Wangari Maathai won the Nobel Peace Prize in 2004.
Sources
- Wikidata — Nairobi, Q3870: https://www.wikidata.org/wiki/Q3870
- UNESCO World Heritage Centre — Mount Kenya National Park/Natural Forest, inscribed 1997, ref 800: https://whc.unesco.org/en/list/800/
- UNESCO World Heritage Centre — Kenya Lake System in the Great Rift Valley, inscribed 2011, ref 1060: https://whc.unesco.org/en/list/1060/
- UNESCO World Heritage Centre — Kenya, eight properties inscribed: https://whc.unesco.org/en/statesparties/ke
- Kenya National Bureau of Statistics — 2019 Population and Housing Census, Nairobi County 4,397,073
Unverified
- The claim that Nairobi National Park is the only national park in the world bordering a capital city follows the Vietnamese corpus and the standard telling, and the comparison with other parks was not rechecked on the check date.
- The driving time of five to six hours from Nairobi to the Masai Mara follows the Vietnamese corpus, and the current road conditions were not rechecked on the check date.
- The claim that M-Pesa was the first mobile money service in the world follows the standard telling, and the comparison with other services was not rechecked on the check date.
- The height of the Ngong Hills, about 2,000 m, follows the Vietnamese corpus, and the exact summit heights were not rechecked on the check date.
Illustrations
- Hero: The Green City in the Sun. Free image: https://upload.wikimedia.org/wikipedia/commons/4/44/At_Nairobi_Railway_Museum_2025_004_-Kenya%26_Uganda_Railway_No._327.jpg — CC BY-SA 4.
- In body, Nairobi National Park: The first national park of Kenya, established in 1946, with a dam where the hippos gather and with a sanctuary for the black rhino. Free image: https://upload.wikimedia.org/wikipedia/commons/8/86/Antelopes_at_Nairobi_National_Park%2C_Kenya.jpg — Public domain.
- In body, The city skyline: The skyline of Nairobi, the Green City in the Sun. Free image: https://upload.wikimedia.org/wikipedia/commons/d/d2/Buffalo_Nairobi_Skyline_Savannah_Kenya_May19_R1600769.jpg — CC BY-SA 4.
- In body, Ngong Hills: The Ngong Hills west of the city. Free image: https://upload.wikimedia.org/wikipedia/commons/f/f2/Ngong%27_Hills%2C_Nairobi%2C_Kenya.jpg — Siegmund Kamau, CC BY-SA 3.
- In body, Karura Forest: A waterfall in Karura Forest. Free image: https://upload.wikimedia.org/wikipedia/commons/4/45/Karura_Forest_Nairobi_Waterfall.jpg — Mamaoke, CC BY-SA 4.
- In body, The Giraffe Centre: A giraffe at the Giraffe Centre. Free image: https://upload.wikimedia.org/wikipedia/commons/3/39/Giraffe_at_Giraffe_Centre_Nairobi%2C_Kenya.jpg — GioRan, CC BY-SA 4.
- In body, The Sheldrick Elephant Nursery: Baby elephants at the Sheldrick nursery. Free image: https://upload.wikimedia.org/wikipedia/commons/a/ab/Baby_elephants_at_the_Sheldrick_Wildlife_Trust_nursery_in_Nairobi%2C_Kenya.jpg — CakeForBreakfast, CC BY-SA 4.
- In body, The Karen Blixen Museum: The Karen Blixen Museum house and garden. Free image: https://upload.wikimedia.org/wikipedia/commons/b/b3/Karen_blixen_museum_in_nairobi_kenya_02.jpg — Alexander Leisser, CC BY-SA 4.
- In body, The National Museum of Kenya: The National Museum of Kenya. Free image: https://upload.wikimedia.org/wikipedia/commons/4/40/Nairobi_National_Museum_7.jpg — Mike W., CC BY-SA 2.
- In body, The Kenyatta International Convention Centre: The Kenyatta International Convention Centre tower. Free image: https://upload.wikimedia.org/wikipedia/commons/4/45/Kenyatta_International_Convention_Centre%2C_2025_%2801%29.jpg — Bahnfrend, CC BY-SA 4.
