On October 2, 1187 CE, Saladin, Sultan of Egypt and Syria, accepted Jerusalem's surrender after a siege, recapturing the city 88 years after the First Crusade seized it. The victory followed Saladin's defeat of the largest Crusader army at the Battle of Hattin on July 4, 1187. Saladin permitted Christian residents to leave upon paying ransom, restored the al-Aqsa Mosque and Dome of the Rock to Islamic use, and allowed Eastern Christian pilgrims continued access. The reconquest prompted Pope Gregory VIII to call the Third Crusade, but Jerusalem remained under Muslim control.