british forces that were in kenya during world war ii captured mogadishu on february 26, 1941. the british ruled until they gave italy control of the city again in 1952. somalia became independent in 1960 with mogadishu as its capital.