Question: why mogadishu became rich and prosperous?
Answer: By the time of the Moroccan traveller Ibn Battuta's appearance on the Somali coast in 1331, the city was at the zenith of its prosperity. He described Mogadishu as "an exceedingly large city" with many rich merchants, which was famous for its high quality fabric that it exported to Egypt, among other places.