In 1831, the Galilee, a part of Ottoman Syria, switched hands from Ottomans to Ibrahim Pasha of Egypt until 1840. During this period, aggressive social and politic policies were introduced, which led to a violent 1834 Arab revolt. In the process of this revolt the Jewish community of Safed was greatly reduced, in the event of Safed Plunder by the rebels. The Arab rebels were subsequently defeated by the Egyptian troops, though in 1838, the Druze of Galilee led another uprising. In 1834 and 1837, major earthquakes leveled most of the towns, resulting in great loss of life.