Yaqut al-Hamawi says that Mogadishu does not have a king, but the most qualified people take charge of the country's affairs
This local chief is chosen by 39 Somali, Arab and Persian tribes
This system continued until Abu Bakr Fakhr al-Din was elected ruler of the country, and its dynasty continued until the fall of Mogadishu in the hands of Muzaffar.