 Neither side could agree to terms, despite the Ayyubid offer of a thirty-year truce and the restoration of Jerusalem and most of the rest of the former kingdom.The crusaders finally managed to starve out the city and captured it in November.Al-Kamil retreated to the nearby fortress of al-Mansurah, but the crusaders remained in Damietta throughout 1219 and 1220, awaiting the arrival of Holy Roman Emperor Frederick II, while King John returned to Acre briefly to defend against al-Mu'azzam, who was raiding the kingdom from Damascus in John's absence.