The city survived being attacked by the French in 1794. In 1800 the people revolted but the British retook control. From 1808 to 1874, the city was the capital of British West Africa. The city grew quickly as many freed slaves came to live there. African soldiers who had fought for Britain in the Napoleonic Wars also came to live in Freetown. During World War II, Britain had a naval base at Freetown. Descendants of the freed slaves, called Creoles, have a large role in the city, even though they are only a small amount of the population.