Why it's the capital
The French set up a military post here in 1857, and the port grew quickly. In 1902 Dakar replaced Saint-Louis as the capital of French West Africa, and after briefly being the capital of the Mali Federation, it became the capital of independent Senegal in 1960.