Qatadid
The Qatadids, or Banu Qatadah, were Mecca's Hasanid sharifian dynasty from 1201 into the twentieth century. Founder Qatadah ibn Idris, a Zaydi Shiʿite sharif from Yanbu, seized Mecca around 1200 and won Ayyubid recognition; in 1220 or 1221 his son Hasan strangled and succeeded him.
His line governed Mecca and the Hejaz, guarding the Hajj routes under loose Ayyubid overlordship and then the Mamluks, who set rival princes against one another. In the late Mamluk or early Ottoman period the family adopted Sunni Islam's Shafiʿi rite. In 1517 Sharif Barakat acknowledged the Ottoman sultan as caliph and was confirmed in office.
In 1803 Wahhabi raiders from Najd deposed Emir Ghalib and occupied the holy cities. Egyptian forces under Muhammad Ali retook Medina in 1812 and Mecca in 1813, restoring the Qatadid emirate under Ottoman suzerainty.