Abu Abdallah Muhammad ibn Ahmad al-Mustazhir (; 9 April 1096 – 12 March 1160), better known by his regnal name al-Muqtafi li-Amr Allah (), was the Abbasid caliph in Baghdad from 1136 to 1160, succeeding his nephew al-Rashid, who had been forced to abdicate by the Seljuks. The continued disunion and contests between Seljuk Turks afforded al-Muqtafi opportunity of not only maintaining his authority in Baghdad, but also extending it throughout Iraq. Birth and background The future caliph al-Muqtafi was born on 9 April 1096 as Abu Abdallah Muhammad, the son of the Abbasid caliph al-Mustazhir (). His mother was Ashin, a slave girl from Syria. After his father's death his half-brother al-Mustarshid succeeded him on 6 August 1118. Al-Mustarshid (r. 1118–1135) ruled for sixteen years as Caliph but the last three years of his reign were occupied with war against Seljuq sultan Mas'ud (his deputy). Not long after the siege of Damascus, al-Mustarshid launched a military campaign against Seljuk sultan Mas'ud, who had obtained the title in Baghdad in January 1133 by the caliph himself. The rival armies met near Hamadan. The caliph, deserted by his troops, was taken prisoner, and pardoned on the promising not to quit his palace. Left in the caliphal tent, however, in the sultan's absence, he was found murdered while reading the Quran, as is supposed, by an emissary of the Assassins, who had no love for the caliph. Modern historians have suspected that Mas'ud instigated the murder although the two most important historians of the period Ibn al-Athir and Ibn al-Jawzi did not speculate on this matter. Physically, al-Mustarshid was a red-haired man with blue eyes and freckles. Al-Mustarshid was succeeded by his son and heir apparent, Al-Rashid Billah on 29 August 1135. Like his father al-Mustarshid, al-Rashid Billah made another attempt of military independence (forming his own military) from the Seljuks. To avenge his father's death, he insulted the envoy of sultan Ghiyath ad-Din Mas'ud who came to demand a heavy largess, incited the mob to plunder his palace, and then, supported by Zengi, who was equally hostile to the sultan because of the murder of Dubais ibn Sadaqah, set up a rival sultan. Mas'ud hastened to the rebellious capital and laid siege to it. Baghdad, well defended by the river and its canals, resisted the attack; but in the end the caliph and Zengi, hopeless of success, escaped to Mosul. The