In 1857, the French built a military base here. This base was called Dakar. It was made the capital of French West Africa in 1902. Dakar was one of the major cities of the French Empire during this time. It was very important in terms of trade, military, and communications to the empire until World War II.