The Naqib al-Ashraf revolt (also known as the Naqib al-Ashraf uprising) was a popular uprising in Jerusalem against the Ottoman authorities between May 1703 and October 1705. It was led by the city's naqib al-ashraf (local head of the order of Muhammad's descendants), Muhammad ibn Mustafa al-Husayni al-Wafa'i, and the rebels consisted of townspeople, peasants from nearby villages, local Bedouins, and religious notables (ulama). For over two years the rebels engaged in virtual self-rule in the city. However, divisions emerged within rebel ranks, and following an Ottoman siege, the rebel camp led by al-Husayni fled the city and were later captured and executed.