Ibn Fuladh, a Dailamite military officer, who claimed Qazvin for himself, revolted against his Buyid overlord Majd al-Dawla in 1016. Majd al-Dawla, however, refused to make him governor of Qazvin, which made Ibn Fuladh threaten him around the countryside of his capital in Ray. Majd al-Dawla then requested the aid of his vassal, the Bavandid ruler Abu Ja'far Muhammad, who managed to defeat Ibn Fuladh and repel him from Ray. Ibn Fuladh then requested aid from Manuchihr. Ibn Fuladh agreed to become Manuchihr's vassal in return for his aid. The following year, a combined army of Ibn Fuladh and Manuchihr besieged Ray, which forced Majd al-Dawla to make Ibn Fuladh the governor of Isfahan. However, the Kakuyid ruler Muhammad ibn Rustam Dushmanziyar, who was a Buyid vassal king of Isfahan, defeated Ibn Fuladh, possibly killing him during the battle.