Why it's the capital
Nairobi was founded in 1898 as a depot on the Uganda Railway, chosen for its high ground, mild climate and water supply. It grew quickly and in 1907 replaced Mombasa as the capital of the East Africa Protectorate, and it stayed the capital when Kenya became independent in 1963.