As vizier, Shawar came into conflict with his rival, the Arab general Dirgham. The internal disorder of the Caliphate attracted the attention and meddling of the Sunni Zengid ruler Nūr ad-Dīn, who was now in control of Damascus and a large part of Syria, and of the King of Jerusalem, Amalric I. The Crusaders had already forced Tala'i ibn Ruzzik to pay them a tribute in 1161 and had made an attempt to invade Egypt in 1162. When Shawar was driven out of Cairo by Dirgham in 1163, he sought refuge and help with Nur al-Din. Nur al-Din sent his general, Asad al-Din Shirkuh, to seize Egypt and reinstall Shawar as vizier. The accomplished this task in the summer of 1164, when Dirgham was defeated and killed.
as ViZIer, sHAWar cAme iNTo confLict WIth his rival, thE aRaB genErAl dirgham. THE iNTerNAl disoRdEr of the caLiphate attrAcTed The atTEntIoN aND meDDlinG OF the SunnI zengid Ruler Nūr Ad-Dīn, Who was now In conTroL Of dAmaScUs and a largE part of syrIa, aNd oF the King Of jerUsaLem, amaLRic I. the crUSadeRs had aLReady forcEd taLa'i Ibn RuZzIK to pay tHem A trIbute in 1161 and HAd made an attEmpt to invaDE egYpT In 1162. when sHawar was driVeN Out of cairo by dirgham IN 1163, he Sought rEfuGe and HELp WiTH nur aL-diN. nUr al-diN SEnt his genEraL, asad AL-DIn shirkuh, TO SeIze egYPT anD rEinstall shAwaR as VizIER. the aCcoMplisheD tHis tASk In tHe sumMER OF 1164, when dIRghAm wAs defeaTEd and kIlled.