to Nusaybin. Shortly after, peace being restored between Tuzun and the Hamdanid chiefs, al-Muttaqi took up his residence at Raqqa — a fugitive in the city which had so often been the proud court of his illustrious ancestors. Rivalry between officials With vizier Abu Abdallah al-Baridi gone, on 3 July Kurankij was appointed as amir al-umara by the powerless caliph al-Muttaqi. On the same night, the Turk Takinak was arrested and drowned. Kurankij chose Abu'l-Faraj ibn Abd al-Rahman al-Isfahani as his secretary (katib), and called on Ali ibn Isa ibn al-Jarrah and his brother Abd al-Rahman to become heads of the administration, but without the title of vizier. This arrangement did not last long, however: within a few days, the Banu'l-Jarrah brothers were dismissed, and Abu Ishaq Muhammad ibn Ahmad al-Qarariti appointed vizier. As al-Baridi had gathered new forces and come up from his base in Basra to Wasit, Kurankij sent his own troops under another Daylamite commander, Ispahan, to confront them. On the news of their approach, the Baridis abandoned Wasit and retreated to Basra. In the meantime, a previous amir al-umara, Muhammad ibn Ra'iq, who had fled to Syria, was strengthened by an influx of Turkic commanders leaving Baghdad, and received a letter from al-Muttaqi inviting his return to the Abbasid capital. When Kurankij received news of Ibn Ra'iq's march on Baghdad, he recalled Ispahan from Wasit, which almost immediately was captured by the Baridis. On 22 August, he also dismissed the vizier al-Qarariti and replaced him with Abu Ja'far Muhammad ibn Qasim al-Karkhi. As Ibn Ra'iq approached Baghdad, Kurankij exited the city and made for Ukbara. The two armies fought for several days, but Ibn Ra'iq was unable to secure victory. Nevertheless, on 23 August a detachment of Ibn Ra'iq's army under Ibn Muqatil entered Baghdad, followed two days later by the bulk of Ibn Ra'iq's army, with Kurankij following behind a day later. Kurankij and his men were reportedly contemptuous of their opponent, and Ibn Ra'iq himself is said to have contemplated returning to Syria. But in a fight that broke out in the city itself, some of Ibn Ra'iq's men managed to attack the Daylamites from behind. The Daylamites panicked and were routed, as they were also being attacked by the populace. Kurankij went into hiding, and Ibn Ra'iq's ascendancy was secured. On 22 September, Ibn Ra'iq had the surviving Daylamites executed, and on the