Contrary to its centralization purpose, the 1657 campaign allowed the Arab "sipahi" officers to establish their own increasingly autonomous foothold in Nablus. The officers raised their families there and intermarried with the local notables of the area, namely the ulama and merchant families. Without abandoning their nominal military service, they acquired diverse properties to consolidate their presence and income such as soap and pottery factories, bathhouses, agricultural lands, grain mills and, olive and sesame oil presses. The most influential military family were the Nimrs, who were originally local governors of Homs and Hama's rural subdistricts. Other officer families included the Akhrami, Asqalan, Bayram, Jawhari, Khammash, Mir'i, Shafi, Sultan and Tamimi families, some of which remained in active service, while some left service for other pursuits. In the years following the 1657 campaign, two other families migrated to Nablus: the Jarrars from Balqa and the Tuqans from northern Syria or Transjordan. The Jarrars came to dominate the hinterland of Nablus, while the Tuqans and Nimrs competed for influence in the town. The former held the post of "mutasallim" (tax collector, strongman) of Nablus longer, though non-consecutively than any other family. The three families maintained their power until the mid-19th century. In the mid-18th century, Zahir al-Umar, the autonomous Arab ruler of the Galilee became a dominant figure in Palestine. To build up his army, he strove to gain a monopoly over the cotton and olive oil trade of the southern Levant, including Jabal Nablus, which was a major producer of both crops. In 1771, during the Egyptian Mamluk invasion of Syria, Zahir aligned himself with the Mamluks and besieged Nablus, but did not succeed in taking the city. In 1773, he tried again without success. Nevertheless, from a political perspective, the sieges led to a decline in the importance of the city in favor of Acre. Zahir's successor, Jezzar Pasha, maintained Acre's dominance over Nablus. After his reign ended in 1804, Nablus regained its autonomy, and the Tuqans, who represented a principal opposing force, rose to power. In 1831–32 Khedivate Egypt, then led by Muhammad Ali, conquered Palestine from the Ottomans.