In 1940, the Italo-Somali population numbered 22,000, accounting for over 44% of the city's population of 50,000 residents.[5][6] Mogadishu remained the capital of Italian Somaliland throughout the latter polity's existence. In February 1941, during World War II it was captured by British forces.