had already put their inhabitants⦗1⦘ to the sword, plundered everything the towns contained, carried off their women and children as captives, and then advanced toward Baghdad. This alarmed the caliph⦗2⦘, so he fortified the city, enlisted the troops, and the people engaged in qunūt during their prescribed prayers and devotional litanies⦗3⦘.
In the same year they subdued the Georgians and the Alans; after that they fought the Qipchaq⦗4⦘ and routed them, and likewise the Russians, seizing whatever wealth they could and taking the children captive⦗5⦘.
Also in that year al-Muʿaẓẓam went to his brother al-Ashraf and appealed to him on behalf of their brother al-Kāmil. Though al-Ashraf had previously harboured resentment against al-Kāmil, he set it aside; the two then marched together toward Egypt to assist al-Kāmil against the Franks, who had captured the port of Damietta and held it firmly since 614 AH. On several occasions al-Kāmil had offered to restore Jerusalem and all the coastal territories that Ṣalāḥ al-Dīn had conquered⦗6⦘ in exchange for their abandoning Damietta, but they refused. Allah, however, decreed that their provisions should run short: a flotilla bringing them supplies arrived, only to be seized by the Muslim navy, and flood-waters were released over the lands surrounding Damietta from every side, so that they could no longer move about⦗7⦘. The Muslims then besieged them from the other flank until they were driven into the narrowest confines. At that point they sued for peace without demanding any compensation. Their leaders came to al-Kāmil while his two brothers, al-Muʿaẓẓam ʿĪsā and Mūsā al-Ashraf, were standing before him. It was a memorable day [and a praiseworthy affair]. The treaty was concluded on whatever terms al-Kāmil Muḥammad—may Allah brighten his countenance—desired, while the Frankish kings and the entire host stood before him⦗8⦘. He then spread a magnificent banquet, at which believer and unbeliever, upright and profligate alike, all gathered. Rājiḥ al-Ḥillī⦗9⦘, the poet, rose and recited⦗10⦘:
Congratulations! Good fortune has now become everlasting;
The Most Merciful has fulfilled His promise with victory.