Mecca scholarship governed by the Hashemite Sharifs. In 930, Mecca was attacked and sacked by Qarmatians, a millenarian Ismaili Muslim sect led by Abū-Tāhir Al-Jannābī and centered in eastern Arabia. The Black Death pandemic hit Mecca in 1349. In 1517, the Sharif, Barakat bin Muhammed, acknowledged the supremacy of the Ottoman Caliph but retained a great degree of local autonomy. In 1803 the city was captured by the First Saudi State, which held Mecca until 1813. This was a massive blow to the prestige of the (Turkish) Ottoman Empire, which had exercised sovereignty over the holy city since 1517. The Ottomans
Sharifate of Mecca he chose one of the sharifs of Hejaz, Jaafar al-Musawi, and installed him as emir of Mecca in about 964. When the Ismaili Shia Fatimids conquered Egypt in 973, they began to appoint the sharifs of Mecca from the descendants of Jaafar al-Musawi. In 1012, the Emir of Mecca Abdul-Futuh declared himself caliph, but he was persuaded to give up his title in the same year. The first Sulayhid ruler conquered the whole of Yemen in 1062, and proceeded northwards to occupy the Hejaz. For a time, they appointed the Emirs of Mecca. As Sunni power began to revive after