Ottoman administration followed a system that led to peaceful coexistence. Each ethno-religious minority—Arab Shia Muslim, Arab Sunni Muslim, Aramean-Syriac Orthodox, Greek Orthodox, Maronite Christians, Assyrian Christians, Armenians, Kurds and Jews—constituted a millet. The religious heads of each community administered all personal status laws and performed certain civil functions as well. In 1831, Ibrahim Pasha of Egypt renounced his loyalty to the Empire and overran Ottoman Syria, capturing Damascus. His short-term rule over the domain attempted to change the demographics and social structure of the region: he brought thousands of Egyptian villagers to populate the plains of Southern Syria, rebuilt Jaffa and settled it with veteran Egyptian soldiers aiming to turn it into a regional capital, and he crushed peasant and Druze rebellions and deported non-loyal tribesmen. By 1840, however, he had to surrender the area back to the Ottomans.