More than a century before, the crusading armies, led by Richard Lionheart, had already suffered a heavy defeat at the hands of the legendary general from Cairo, Salah al-Din al-Ayyubi (known in the West as Saladin) at the Battle of Hattin in 1187 in the north of Palestine. In that same year, he took Jerusalem, al-Quds thus again falling into Muslim hands after 88 years of crusader rule. It would remain so until World War I.
In 1258, Mongol invaders captured Baghdad and brought down the Abbasid dynasty. Two years later, their advance was stinted by the Mamluks (slaves), soldiers in the service of the Ayyubid sultans (Saladin’s successors), who had afterwards gained power at the Battle of Ayn Jalut in northern Palestine.