Abū'l-Qasim ʿAbd Allāh ibn Muhammad ibn al-Qa'im (Arabic: أبو القاسم عبد الله بن محمد بن القائم) better known by his regnal name Al-Muqtadi (1056 – February 1094) (Arabic: المقتدي 'the follower') was the Abbasid caliph in Baghdad from 1075 to 1094. He succeeded his grandfather caliph al-Qa'im in 1075 as the twenty-seventh Abbasid caliph. Biography He was born to Muhammad Dhakirat, the son of caliph Al-Qa'im, and an Armenian slave girl. His full name was ʿAbd Allāh ibn Muhammad ibn al-Qa'im and his Kunya was Abū'l-Qasim. He was born in 1056 CE 447–448 AH. When al-Qa'im was on his deathbed in 1075, Fakhr ad-Dawla took charge of his personal care - al-Qa'im did not want bloodletting but Fakhr ad-Dawla had it done anyway. Before he died, al-Qa'im advised his grandson and successor al-Muqtadi to keep the Banu Jahir in their position: "I have not seen better persons for the dawla than Ibn Jahir and his son; do not turn away from them." Al-Muqtadi ascended to the throne on 2 April 1075. In 1077, deadly riots broke out in Baghdad between the city's Hanbali and Ash'ari factions when Abu Nasr ibn al-Ustadh Abi al-Qasim al-Qushayri arrived in town to become lecturer at the city's nizamiyya. During the riots, Nizam al-Mulk's son Mu'ayyad al-Mulk's life was endangered. Nizam al-Mulk blamed Fakhr ad-Dawla for the whole affair and in 1078 sent his representative Gohar-A'in to the caliph to demand Fakhr ad-Dawla's removal and to have the Banu Jahir's followers arrested. Gohar-A'in arrived on 23 July and was granted an audience on Tuesday, 14 August, during which he handed over a letter requesting Fakhr ad-Dawla's removal. Al-Muqtadi initially balked at the demand, but by 27 August Gohar-A'in was threatening to attack the palace unless he complied. At that point, al-Muqtadi had no choice – the Abbasids lacked a military of their own and were powerless to resist Seljuk interference. Fakhr ad-Dawla apparently resigned (instead of being fired) and al-Muqtadi had him placed under house arrest. Meanwhile, Amid ad-Dawla had left for Isfahan once he heard of Nizam al-Mulk's plans. He took a circuitous route through the mountains to avoid running into Gohar-A'in on the way, and he reached Isfahan on 23 July – the same day that Gohar A'in reached Baghdad. Amid ad-Dawla met with Nizam al-Mulk and the two parties eventually reconciled, which they sealed with a marriage contract between Nizam al-Mulk's granddaughter