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
Mecca more when Ali, the fourth caliph, took power choosing Kufa as his capital. The Umayyad Caliphate moved the capital to Damascus in Syria and the Abbasid Caliphate to Baghdad, in modern-day Iraq, which remained the center of the Islamic Empire for nearly 500 years. Mecca re-entered Islamic political history during the Second Islamic Civil War, when it was held by Abd Allah ibn al-Zubayr, an early Muslim who opposed the Umayyad caliphs. The city was twice besieged by the Umayyads, in 683 and 692. For some time thereafter the city figured little in politics, remaining a city of devotion and