 As @-@ Salih Ayyub was ill and his health deteriorated further due to the mounting pressure from the Crusader offensive . His wife Shajar al @-@ Durr called a meeting of all the war generals and thus became commander @-@ in @-@ chief of the Egyptian forces . She ordered the fortification of Mansurah and then stored large quantities of provisions and concentrated her forces there . She also organized a fleet of war galleys and scattered them at various strategic points along the Nile River . Crusader attempts to capture Mansurah were thwarted and King Louis found himself in a critical position . He managed to cross the Nile to launch a surprise attack against Mansurah . Meanwhile , as @-@ Salih Ayyub died , but Shajar al @-@ Durr and as @-@ Salih Ayyub 's Bahri Mamluk generals , including Rukn al @-@ Din Baybars and Aybak , countered the assault and inflicted heavy losses on the Crusaders . Simultaneously , Egyptian forces cut off the Crusader 's line of supply from Damietta , preventing the arrival of reinforcements . As @-@ Salih Ayyub 's son and the newly proclaimed Ayyubid sultan al @-@ Mu 'azzam Turan @-@ Shah reached Mansurah at this point and intensified the battle against the Crusaders . The latter ultimately surrendered at the Battle of Fariskur , and King Louis and his companions were arrested . 
