The Egyptian forces of Muhammad Ali wrested control of the Levant from the Ottomans in 1831 and in the same year many Jews who had fled the Galilee, including Safed, under Abdullah Pasha returned as a result of Muhammad Ali's liberal policies toward Jews. Safed was raided by Druze in 1833 at the approach of Ibrahim Pasha, the Egyptian governor of the Levant. In the following year, the Muslim notables of the city, led by Salih al-Tarshihi, opposed to the Egyptian policy of conscription, joined the peasants' revolt in Palestine. During the revolt, rebels plundered the city for over thirty days. Emir Bashir Shihab II of Mount Lebanon and his Druze fighters entered its environs in support of the Egyptians and compelled Safed's leaders to surrender. The Galilee earthquake of 1837 killed about half of Safed's 4,000-strong Jewish community, destroyed all fourteen of its synagogues and prompted the flight of 600 Perushim for Jerusalem; the surviving Sephardic and Hasidic Jews mostly remained. Among the 2,158 residents of Safed who had died, 1,507 were Ottoman subjects, the rest foreign citizens. The Jewish community, whose quarter was situated on the hillside, had been particularly hard hit, the southern, Muslim section of the town experiencing considerably less damage. The following year, in 1838, Druze rebels and local Muslims raided Safed for three days.