and released the vizier Ahmad ibn al-Hasan al-Mimandi, reinstating him to the ministry (1).
Then the city of Rayy was taken from Masʿūd, so he mustered an army that stormed it and committed outrages there (2). Battles flared for him across the realm. The envoy of the Dīwān arrived, and Masʿūd held elaborate ceremonies for his coming; Khurasan was decorated throughout, and the day he entered Balkh was as celebrated as the arrival of a sultan.
Two hundred elephants marched in the royal procession, and the troops were arrayed in full regalia.
A plague broke out in the year 423 AH (3) in India, Ghazna, and the outskirts of Khurasan, to the point that in a short span some forty thousand funerals were conducted in Isfahan. Its ruler at the time was Abū Jaʿfar ibn Kākuya; the caliph was al-Qāʾim; the sultan of Iraq, Jalāl al-Dawla; Abū Kālijār governed Fars; and Masʿūd ibn Muḥammad held Khurasan, the Jibāl, Ghur, and India.
In that same year Qadr Khān the Turk, lord of Transoxiana, died. Masʿūd prepared for a campaign and gathered his forces to march on Iraq, but an urgent matter diverted him: his deputy in India had revolted. He therefore set out against him and equipped the expedition, entrusting it to Emir Ahmad ibn Yanal Takin (4).
Soon after, the Ghuzz Turks began ravaging Transoxiana, so Masʿūd advanced against them, struck them hard, and inflicted heavy losses. He then wheeled toward Tabaristan because its governor had broken allegiance, and there he faced serious troubles (5).
Masʿūd’s own army then fell into disorder and grew bold against him. The Ghuzz seized the moment, captured Naysabur, and wrought havoc. Masʿūd sought help from the kings beyond the Oxus, but they proved of no benefit. The Ghuzz advanced to fight him under the leadership of Tughril Beg and his brother Dāwud,