Al-Kamil (born 1180; died March 6, 1238), formally al-Malik al-Kamil Nasir ad-Din Muhammad, was the 4th Ayyubid sultan of Egypt and a military commander. Known to Western crusaders as Meledin, he was the son of al-Adil, brother of Saladin. Before ruling Egypt, he commanded Ayyubid forces in the Jazira, where he recovered from a defeat near Mardin by securing control of the region and taking Harran.
Appointed his father’s viceroy in Egypt in 1200, al-Kamil exercised considerable authority, overseeing work on Cairo’s citadel and issuing decrees in his own name. He became sultan after al-Adil’s death in 1218, as the Fifth Crusade was attacking Egypt. During the defense of Damietta, a conspiracy nearly deposed him in 1219. The city fell later that year, but al-Kamil eventually used the Nile’s floodwaters to force the crusaders to accept peace. He retook Damietta in 1221.
Al-Kamil pursued diplomacy as well as war. He met Francis of Assisi and repeatedly offered peace to the crusaders. In 1229, through the Treaty of Jaffa with Emperor Frederick II, he ceded Jerusalem, Bethlehem, and a corridor to the sea to the crusader kingdom for 10 years. Muslim residents retained their homes and property, and the Temple area, Dome of the Rock, and Aqsa Mosque remained under Muslim control. Afterward, al-Kamil turned against Damascus, which surrendered to his brother al-Ashraf in June 1229.
In his later years, al-Kamil faced conflicts with the Seljuks and Khwarezmians. His sons as-Salih Ayyub and al-Adil II succeeded him in Syria and Egypt, respectively, but the Ayyubid realm soon fell into civil war. An eyewitness account by Oliver of Paderborn described the generosity al-Kamil’s forces showed to defeated crusaders, though a later scholar noted a translation issue in one passage.