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 in Mecca Medina signed a 10-year truce called the Treaty of Hudaybiyah under which Arab tribes were given the option of joining one or the other of the parties, who would come to their aid should any of their allied tribes face aggression. After the Quraysh-allied Banu Bakr tribe attacked and killed many of the Muslim-allied Banu Khuza'a, Muhammad gathered a large army to attack the Quraysh and take Mecca from them. The large Muslim army entered Mecca on Monday, 11 December 629 (18 Ramadan 8 hijrah) and after only a small skirmish took control of the city. The "opening" of Mecca