The MuáºÂaffarids (or MuáºÂaffar dynasty) were a Muslim Arab-Persian dynasty that ruled the Banaadir coast with their capital at Mogadishu from the late 15th or early 16th century until around 1624 or possibly as late as 1700. They were mercantile elite of Mogadishu of Arab and Persian extraction that mixed with the local Somali population and cooperated with the Ajuran clan. They were effectively independent, but allied to the more powerful Ajuran Sultanate. They resisted the Portuguese, but occasionally paid them tribute. In the 17th century, the MuáºÂaffarids were conquered by the Somali Abgaal.
The MuáºÂaffarid is the second known dynasty of Mogadishu. Its first attested ruler, ÿUmar al-Malik al-MuáºÂaffar, bore the title of sultan. He is known from his coins. Coins were minted throughout the MuáºÂaffarid period. The prosperity of Mogadishu during this time stemmed from its status as a trade link between the interior and the sea and its alliance with Ajuran. The city, however, was already in decline when the MuáºÂaffarids took over.