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
Muhammad after the occupation of Mecca period was followed by the period of the Succession to Muhammad. Muhammad after the occupation of Mecca The period of "Muhammad after the conquest of Mecca" started with the Conquest of Mecca in 630 and ended with his death in 632. This period was preceded by the period of Muhammad in Medina. The Muslim army entered and occupied Mecca in the year 630 CE. In 628 the Meccan tribe of Quraish and the Muslim community in Medina signed a truce called the Treaty of Hudaybiyya. Despite improved relations between Mecca and Medina after the signing of the "Treaty of Hudaybiyya",