A railway depot that outgrew its tracks, a detention camp that became the birthplace of a nation, and a capital where lions still roam the outskirts.

A city that started as a supply yard

Nairobi did not grow slowly from a village the way most capitals do. It was switched on almost overnight, in 1899, when British engineers building the Uganda Railway needed a flat, well-watered spot roughly halfway between Mombasa and Lake Victoria to store equipment and rest crews. The site they picked was a papyrus swamp the local Maasai called Enkare Nyrobi — "a place of cool waters" — at a comfortable, malaria-resistant elevation of nearly 1,800 meters. Within a year the railhead depot had become the administrative headquarters for the whole province, and within a decade it was the capital of British East Africa, a status a swamp with no prior settlement had no obvious claim to beyond being convenient for a train.

The city's early layout still shows its logistics-yard origins: streets platted in a grid around the railway line by an engineer named Arthur Church in 1898, an "Indian Bazaar" quarter built for the thousands of laborers brought from British India to lay track, and staff housing for British administrators on the higher, cooler ground to the west — a segregation by altitude and race that shaped the city's neighborhoods for decades afterward. The Nairobi Railway Museum, a short stop in this guide, sits on the site of that original depot and still holds carriages from the line that built the city around itself.

The Green City in the Sun

Nairobi's other nickname, the Green City in the Sun, comes from the same accident of geography that made it a viable railway stop in the first place. Sitting almost on the equator but at nearly 1,800 meters, the city gets equatorial sunlight without equatorial heat — cool mornings, mild evenings, and rain reliable enough to keep the jacaranda and flame trees flowering along its avenues most of the year. Early colonial planners leaned into this, laying out wide, tree-lined streets and generous public gardens more in the style of a British garden suburb than a tropical trading post, a template that shaped the city's center for a century afterward.

That same climate and elevation is also why Nairobi is the only national capital in the world with a full national park inside its boundaries. Nairobi National Park, a stop on Day 3 of this itinerary, sits close enough to downtown that a lion has occasionally wandered into the suburbs looking for prey — the terrain simply never stopped being savannah on the park's side of the fence.

A swamp chosen for a supply depot in 1899 is, by most measures, an unlikely origin story for a national capital. Nairobi's is that unlikely origin story, told at speed.

Uhuru: the ground that changed its meaning

The most consequential few acres in Nairobi's history sit today under a plain lawn and a museum, a stop on Day 3 of this itinerary. During the Mau Mau uprising of the 1950s — the anti-colonial insurgency that hastened the end of British rule and cost an estimated 10,000 or more Kenyan lives — the site now called Uhuru Gardens served as a British detention and interrogation camp under the counter-insurgency effort known as Operation Anvil. Thousands of suspected Mau Mau fighters and sympathizers passed through it.

Less than a decade later, at midnight on December 12, 1963, the same ground was chosen for the opposite purpose: the ceremony marking Kenya's independence. As the Union Jack came down and the new Kenyan flag went up, Jomo Kenyatta — who had himself been imprisoned by the colonial government during the Emergency — took the oath as the country's first prime minister. Uhuru is Swahili for freedom, and the gardens have carried the name ever since, a rare case of a single piece of ground being asked to hold both a colonial atrocity and the moment that ended it.

Silicon Savannah

Nairobi's more recent reputation has nothing to do with railways or independence and everything to do with a text message. In 2007, the mobile carrier Safaricom launched M-Pesa — a service that let anyone with a basic mobile phone, not a smartphone, send and receive money by SMS, in a country where most people had no bank account and no easy way to get one. It worked at a scale nobody quite expected: M-Pesa now moves the equivalent of a significant share of Kenya's entire GDP through phones every year, and it did more to bring ordinary Kenyans into the formal economy than any bank branch ever had.

The success of M-Pesa, engineered largely by teams working out of Nairobi, helped earn the city its "Silicon Savannah" nickname — Africa's most complete technology ecosystem, with a dense cluster of startups, venture capital, and the regional offices of global tech firms clustered mostly around Westlands and Kilimani, a few kilometers from the hotel this guide is built around. It is a strange and specific kind of civic pride: a city whose defining modern export is not a product you can see, but a way of moving money that skipped the bank branch entirely.