sentences:  Battuta added that the city was ruled by a Somali Sultan, Abu Bakr ibn Sayx 'Umar, who was originally from Berbera in northern Somalia and spoke both Somali (referred to by Battuta as "Benadir", a southern Somali dialect) and Arabic with equal fluency.The Sultan also had a retinue of wazirs (ministers), legal experts, commanders, royal eunuchs, and other officials at his beck and call.Ibn Khaldun (1332–1406) noted in his book that Mogadishu was a massive metropolis city that served as the capital of the Ajuran Kingdom.