In 1244, the castles held out against the Khwarezmian army and accomplished their objective of disrupting the Muslim attack on Jerusalem. Nonetheless, Jerusalem eventually fell to the overwhelming number of the Khwarezmian and the primary mission of the castles became obsolete. However, Toron tenuously remained in Crusader hands and was periodically under siege by the Mamluks until the jihad of Baibars further isolated it. Following a brief siege, Baibars in a rare display of mercy allowed the small Crusader contingent to evacuate in exchange for surrender, which they accepted.