Amalric I of Jerusalem
Dirgham appealed to Amalric for help, but the King of Jerusalem was unable to intervene in time, and in late April 1164, the Syrians surprised and defeated Dirgham's brother Mulham at Bilbeis, opening the way to Cairo. In May 1164, Shawar became vizier of Egypt, and Dirgham was killed, after he had been abandoned by the people and the army. Shawar was, however, a mere figurehead to Nur ad-Din, who had installed Shirkuh as ruler of Egypt. Shawar became unsatisfied with this and called upon the enemy of the Sunni Muslims, King Amalric I of Jerusalem.