Nairobi, Kenya
Nairobi is Kenya's capital and East Africa's economic and diplomatic hub. Founded only in 1899 as a colonial railway depot, it has grown into a regional power city, headquarters of UNEP and UN-Habitat, and the only major capital in the world bordered by a national park.
Highlights
- Headquarters of UN Environment Programme and UN-Habitat
- Nairobi National Park within the city limits
- East Africa's largest tech ecosystem ('Silicon Savannah')
- Major hub for international NGOs and diplomatic missions
History
Nairobi is one of Africa's youngest major capitals, and its story begins not with an ancient kingdom but with a railway. In 1899 the builders of the Uganda Railway reached a flat, swampy stretch of plain roughly midway between the Indian Ocean port of Mombasa and Lake Victoria. They established a supply depot and rail camp at the spot, choosing it largely because the level ground made a convenient staging point before the line climbed into the highlands. The name comes from the Maasai phrase Enkare Nyrobi, meaning "place of cool waters", a reference to the cold river that crossed the marshy ground where the city now stands.
What began as a tented railway camp grew with remarkable speed. The cool, malaria-free highland climate attracted British colonial administrators and European settlers, and the muddy depot was quickly drained, surveyed and laid out as a town. In 1905 Nairobi became the capital of the British East Africa Protectorate, formally replacing Mombasa as the seat of colonial government in 1907. Throughout the early twentieth century it served as the administrative and commercial heart of settler-dominated Kenya, the centre of the coffee and tea trade, and the gateway for big-game safaris that made the country famous abroad.
The mid-twentieth century brought political upheaval. Nairobi was a focal point of the Mau Mau uprising and the wider movement for self-rule, and the city's growing African population pressed for independence. In 1963 Kenya became independent under its first president, Jomo Kenyatta, and Nairobi was confirmed as the capital of the new nation. In the decades since, it has consolidated its position as East Africa's primate city: a magnet for migration from across the region, a hub of international development and diplomacy, and a fast-expanding metropolis whose population has multiplied many times over since 1963. For a wider perspective on the country and its place in the region, see our Kenya country guide and the East Africa region overview.
Geography & Climate
Nairobi occupies a high plateau on the southern edge of Kenya's central highlands, at roughly 1,795 metres (about 5,889 feet) above sea level. This elevation is the single most important fact about the city's physical character: although Nairobi lies only a short distance south of the equator, its altitude tempers the heat and gives it a mild, temperate climate that early settlers prized. Days are typically warm and pleasant rather than tropical and humid, and evenings can turn surprisingly cool.
The city sits near the eastern rim of the Great Rift Valley, the vast geological trench that runs the length of East Africa. To the west the land drops away dramatically toward the valley floor, while to the south the Nairobi plains open out into the savanna grassland that hosts the city's famous national park. Several small rivers, including the Nairobi River, thread through the urban area. The climate follows a two-rains pattern: the "long rains" generally fall from March to May and the "short rains" around November and December, separating the drier, sunnier stretches that visitors usually prefer. Temperatures stay relatively stable through the year, rarely climbing to uncomfortable extremes thanks to the highland setting.
Economy
Nairobi is the undisputed commercial and diplomatic capital of East Africa, anchoring the most diversified economy in the region. It is home to the Nairobi Securities Exchange, one of Africa's larger stock markets, and to a dense cluster of banks, insurers and professional-services firms that serve clients across the continent. Major multinationals, including technology and payments companies, base their regional headquarters here, drawn by the city's skilled workforce, transport links and central position in the East African market.
The city has earned a global reputation as the "Silicon Savannah", East Africa's largest and most dynamic technology ecosystem. The breakthrough that put Nairobi on the map was M-Pesa, the mobile-money platform pioneered by the telecom operator Safaricom, which transformed everyday finance by letting millions of people send money and pay bills from basic phones. M-Pesa's success seeded a wider startup culture, supported by innovation hubs, incubators and a steady flow of venture investment into fintech, logistics and agritech ventures.
Beyond private enterprise, Nairobi is a global centre of diplomacy and development. It hosts the United Nations Office at Nairobi (UNON), the only major UN headquarters located in the Global South, which is home to the UN Environment Programme (UNEP) and UN-Habitat. Hundreds of international NGOs, aid agencies, foreign missions and regional bodies maintain offices in the city, making it one of the most important diplomatic hubs anywhere in Africa. Tourism is a further pillar of the economy: as the principal gateway to Kenya's safari circuit and beach resorts, Nairobi captures a large share of the spending generated by international visitors.
Neighborhoods & Districts
Nairobi is a city of striking contrasts, where gleaming office towers, leafy garden suburbs and densely packed informal settlements often sit within sight of one another. The Central Business District (CBD) is the historic core, a grid of high-rise offices, hotels, government buildings and bustling streets dominated by the landmark Kenyatta International Convention Centre. Adjoining Upper Hill has emerged as a second commercial node, attracting banks and corporate headquarters that have outgrown the old downtown.
To the northwest, Westlands is a fast-growing commercial and entertainment district packed with malls, restaurants, nightclubs and corporate offices. Kilimani and Lavington are popular mixed residential areas, increasingly built up with apartment blocks and cafes, while Karen — named after the Danish author Karen Blixen, whose former home is now a museum — remains one of the city's most exclusive leafy suburbs, full of large garden plots, horse stables and upscale homes on the rural southern fringe.
On the other side of the social spectrum, the sprawling Eastlands districts house much of the city's working-class population, and Eastleigh within them hosts a thriving Somali diaspora business quarter known for its markets and trade. Nairobi is also home to Kibera, one of the largest informal settlements in Africa, where a very dense community lives in self-built housing with limited services. These neighbourhoods together capture the energy and the inequalities of a rapidly urbanising African metropolis.
Top Attractions & Landmarks
Nairobi packs an unusual concentration of wildlife and cultural attractions into and around the city. Nairobi National Park is the headline draw: the only national park in the world set within the boundaries of a capital city, where visitors can photograph lions, rhinos, giraffes, buffalo and zebra against the backdrop of the urban skyline. On the park's edge, the David Sheldrick Wildlife Trust elephant orphanage rehabilitates orphaned elephants, and the nearby Giraffe Centre lets visitors hand-feed endangered Rothschild's giraffes from a raised platform.
For culture and history, the Karen Blixen Museum preserves the colonial-era farmhouse made famous by the memoir Out of Africa, while Bomas of Kenya showcases traditional homesteads, dance and music from the country's many ethnic communities. The Nairobi National Museum presents the nation's natural history, archaeology and art, including renowned hominid fossils from the Rift Valley. In the heart of downtown, the cylindrical Kenyatta International Convention Centre (KICC) tower offers panoramic rooftop views over the city, and the green expanse of Uhuru Park provides a popular open space beside the central business district.
Getting Around
Jomo Kenyatta International Airport (JKIA), on the southeastern edge of the city, is the main international gateway and one of the busiest airports in East Africa, connecting Nairobi to destinations across Africa, Europe, the Middle East and Asia. A second airport, Wilson, handles smaller aircraft and safari flights to the national parks. The modern SGR Madaraka Express standard-gauge railway links Nairobi to the coastal city of Mombasa with a fast, comfortable passenger service that has become a popular alternative to flying or driving.
Within the city, the workhorses of public transport are the matatus — privately operated minibuses, often brightly painted, that ply fixed routes and are the cheapest way to move around. A new Bus Rapid Transit (BRT) network is being rolled out to ease the city's notorious traffic congestion, and app-based ride-hailing services operate widely, offering a convenient option for visitors. Traffic can be heavy during peak hours, so allowing extra travel time is wise, especially when heading to or from the airport.
Culture & Cuisine
Nairobi's culture is a lively blend of Kenya's many ethnic traditions, a cosmopolitan international community and a youthful, fast-moving urban scene. Food is central to the experience. The signature dish is nyama choma, grilled meat — usually goat or beef — eaten in convivial open-air settings, often paired with ugali, a staple maize-meal stiff porridge, and sukuma wiki greens. Street food, Indian-influenced cooking and a growing crop of contemporary restaurants round out a rich and varied dining landscape.
As the gateway to Kenya's safari country, Nairobi also has a buzzing nightlife and entertainment scene, with bars, live-music venues and clubs concentrated in areas like Westlands. Music runs deep in the city's identity: the guitar-driven Benga sound is a long-standing Kenyan tradition, while the energetic, slang-rich Gengetone genre has exploded among younger audiences in recent years. Together they give Nairobi one of the most exciting urban music cultures on the continent.
Best Time to Visit & Travel Tips
The most comfortable and popular times to visit Nairobi are the drier months of January to February and June to October, when skies are clearer, wildlife viewing is at its best and the mild highland weather is especially pleasant. These windows also coincide with peak safari season across Kenya, for which Nairobi is the natural starting point. The wetter long-rains period from March to May can still be rewarding and quieter, but expect more cloud and the occasional downpour.
Practical tips: Nairobi's altitude means evenings can be cool, so pack a light layer even in warm months. Allow generous time for traffic, particularly on airport runs. As in any large city, take ordinary precautions with valuables and use trusted transport at night. Most of all, treat Nairobi as a destination in its own right rather than just a transit point — between the national park, the museums and the food and music scene, the city easily rewards a few days of exploration before or after a wider trip. You can plan onward journeys with our city distance calculator and browse other capitals in the African capitals index.
Distances from Nairobi
Calculate distance and flight time from Nairobi to other major African cities:
- Nairobi to Abidjan
- Nairobi to Accra
- Nairobi to Addis Ababa
- Nairobi to Algiers
- Nairobi to Cairo
- Nairobi to Cape Town
- Nairobi to Casablanca
- Nairobi to Dakar
- Nairobi to Dar Es Salaam
- Nairobi to Johannesburg
Frequently Asked Questions
Is Nairobi the capital of Kenya?
Yes. Nairobi is the capital and largest city of Kenya, as well as the country's primary commercial, financial and diplomatic centre. It replaced Mombasa as the colonial capital in 1907 and has remained the seat of national government since Kenya gained independence in 1963.
What is Nairobi known for?
Nairobi is best known as East Africa's commercial and diplomatic hub. It hosts the only United Nations headquarters in the Global South (UNON, home to UNEP and UN-Habitat), it is the heart of the "Silicon Savannah" tech scene that produced M-Pesa, and it borders Nairobi National Park — the only national park found within a major city's limits.
Is there a national park in Nairobi?
Yes. Nairobi National Park lies on the southern edge of the city and is the only national park in the world located within the boundaries of a capital city. Lions, rhinos, giraffes and zebras roam the savanna against the backdrop of the city skyline, just a short drive from the central business district.
What is the best time to visit Nairobi?
The drier, sunnier months of January to February and June to October are generally the best times to visit, offering pleasant weather and excellent wildlife viewing. These periods also align with Kenya's main safari season, for which Nairobi is the principal gateway.
How high above sea level is Nairobi?
Nairobi sits at roughly 1,795 metres (about 5,889 feet) above sea level on the highlands at the edge of the Great Rift Valley. This altitude gives the city its mild, spring-like climate despite its location close to the equator.
Last updated: June 2026.