The Fatimid garrison at Ascalon had controlled the route into the Nile Delta and to Cairo, the same line of attack taken by the Arabs when they invaded Egypt in 640, after their conquest of Syria and Palestine. When King Baldwin
Ill captured Ascalon with Templar help in 1153 it opened the door to Egypt for the Franks. But the opportunity was only seized after Baldwin died in 1162 and was succeeded by his twenty-five-year-old brother Amalric, who on three occasions, in 1164, 1167 and 1168, entered Egypt to prevent it falling to Nural-Din.
The Fatimid regime in Cairo had grown weak and unstable, with two viziers vying with one another for control over the enfeebled caliphs. Each of the viziers reached outside Egypt for support, drawing Amalric in Jerusalem and Nur al-Din in Damascus into their quarrel. For the Franks the prize was potentially enormous: by installing a friendly government in Cairo the Kingdom of Jerusalem would not only gain access to the vast resources of Egypt but would also protect its southern flank. But the prize was no less great for Nural-Din: not only would his acquisition of Egypt give him control over the trade route from Damascus that terminated in Cairo, but he would entirely surround the Christian states.
Each side had grounds for hope. Alaric understood that for the Fatimids, who were both Shia and Arab, their greatest enemy was not his Christian kingdom but Nur al-Din, who was a Sunni and a Seljuk Turk. But though two centuries of Fatimid rule meant that Shia influences were strong in Egypt, Nur al-Din knew that the mass of Egyptians remained Sunni, and he counted on the shared Muslim bond between Cairo and Damascus. For five years this contest was waged between Amalric and Shirkuh, the
Kurdish general commanding Nur al-Din’s army. If either rival won Egypt to its side, the gain could be decisive.
Amalric had large contingents of Templars in his army when he twice, in 1164 and 1167, forced Shirkuh to withdraw from Egypt and then withdrew himself. A leading Templar also took part in the mission which negotiated the treaty of alliance between Amalric and Shawar, the Fatimid vizier, prior to the Franks’ military intervention in 1167. But by then the fundamental weakness of the Fatimid regime was obvious to both Nur al-Din and Amalric, and it was only a matter of time before one of them would strike the coup de grace. Amalric struck first, marching into Egypt in 1168 with the intention of outright annexation-without the support of Templar forces. The Fatimids withdrew within the walls of Cairo and burnt its suburbs to the ground, and they sent for help to Nur al-Din. This time it was Amalric who was forced to withdraw, and Nur al-Din’s Kurdish general Shirkuh entered Cairo, decapitated Shawar and installed himself as vizier. His rule was not long; in March 1169 Shirkuh died and was succeeded as vizier by his nephew Salah al-Din, better known in the West as Saladin.