 The Sultanate of Mogadishu later developed with the immigration of Emozeidi Arabs , a community whose earliest presence dates back to the 9th or 10th century . This evolved into the Muzaffar dynasty , a joint Somali @-@ Arab federation of rulers , and Mogadishu became closely linked with the powerful Somali Ajuran Sultanate . Following his visit to the city , the 12th century Syrian historian Yaqut al @-@ Hamawi wrote that it was inhabited by dark @-@ skinned Berbers , the ancestors of the modern Somalis . 
 The Sultanate of Mogadishu later developed with the immigration of Emozeidi Arabs , a community whose earliest presence <a href='uninflect' title='1'><mark>dates</mark></a> back to the 9th or 10th century . This evolved into the Muzaffar dynasty , a joint Somali @-@ Arab federation of rulers , and Mogadishu became closely linked with the powerful Somali Ajuran Sultanate . Following his visit to the city , the 12th century Syrian historian Yaqut al @-@ Hamawi wrote that it was inhabited by dark @-@ skinned Berbers , the ancestors of the modern Somalis . 
The Sultanate of Mogadishu later developed with the immigration of Emozeidi Arabs , a community whose earliest presence date back to the 9th or 10th century . This evolved into da Muzaffar dynasty , a joint Somali @-@ Arab federation of rulers , and Mogadishu became closely linked with the powerful Somali Ajuran Sultanate . Following his visit to tdacity , the 12th century Syrian historian Yaqut al @-@ Hamawi wrote that it was inhabited by dark @-@ skinned Berbers , the ancestors of thdaodern Somalis .