Al-Kamil Muhammad was the last Ayyubid emir of Mayyafariqin, ruling from 1247 until the city fell to the Mongols in 1260. Also known as Al-Kamil Muhammad II, he was the son of al-Muzaffar Ghazi and nephew of Al-Kamil Muhammad I.
With Mongol forces threatening his realm from several directions, Al-Kamil spent much of his reign seeking to preserve Mayyafariqin’s autonomy through diplomacy. In 1252, when Bayju Khan demanded the city’s surrender, Al-Kamil escaped with his family to Hasankeyf. His brother al-Ashraf Musa then sought Batu Khan’s support. Batu agreed to delay an invasion if Al-Kamil personally submitted to the Great Khan Möngke. Al-Kamil traveled to Karakorum in February 1253 with rich gifts.
The Mongols later advanced on Baghdad, giving Mayyafariqin a temporary reprieve. Al-Kamil sent troops to aid the caliph during the Siege of Baghdad in 1258, but they arrived too late and turned back after the city fell. Mongol forces then besieged Mayyafariqin in 1259–1260. After prolonged resistance, the city was captured and Al-Kamil was killed on April 7, 1260.