تتش بن ألب أرسلان
In 1086, the Seljuk emir of Damascus, Tutush I, appointed Artuk Bey governor of Jerusalem. Artuk died in 1091, and his sons Sökmen and Ilghazi succeeded him. In August 1098, while the Seljuks were distracted by the arrival of the First Crusade in Syria, the Fatimids under vizier al-Afdal Shahanshah appeared before the city and laid siege to it. After six weeks, the Seljuk garrison capitulated and was allowed to leave for Damascus and Diyar Bakr. The Fatimid takeover was followed by the expulsion of most of the Sunnis, in which many of them were also killed.