Shirdil, who now used the
title "Sharaf al-Dawla" (), soon found his position surrounded by enemies. In the west, Samsam al-Dawla ruled in Baghdad, while two more of his brothers,
Taj al-Dawla and
Diya' al-Dawla, were in control of
Basra and
Khuzestan. To the north,
Fakhr al-Dawla ruled in
Ray. The next few years were spent by Sharaf al-Dawla fighting against all of these individuals. He provided support to the
Samanids when Fakhr al-Dawla attempted to wrest
Khorasan from them. Despite this, the rulers of Basra and Khuzestan soon acknowledged Fakhr al-Dawla as senior amir, making the latter the most powerful of the Buyids. Despite this turn of events, Sharaf al-Dawla was able to expand his position. He recovered Buyid
Oman, which had earlier seceded to Samsam al-Dawla. In early 986 he captured Basra and Khuzestan, forcing the two brothers to flee to Fakhr al-Dawla's territory. He then took on Samsam al-Dawla; by May or June 986 the latter recognized Sharaf al-Dawla as senior amir. Sharaf al-Dawla probably intended to invade Fakhr al-Dawla's realm, but Iraq soon slipped into anarchy and he was forced to intervene there. He entered Baghdad in 987, deposed Samsam al-Dawla and imprisoned him along with his official
Fuladh ibn Manadhar in Fars. He also had the
Daylamite officer
Ziyar ibn Shahrakawayh executed. In July of that year the
caliph proclaimed Sharaf senior amir. Sharaf al-Dawla next planned to subdue the
Kurd Badr ibn Hasanwayh, who had taken over
Diyarbakr during Samsam al-Dawla's reign and was an ally of Fakhr al-Dawla. The campaign failed, and not long afterwards Sharaf al-Dawla died, either in 988 or 989. He had managed to mostly preserve 'Adud al-Dawla's empire, but the Buyids of Ray under Fakhr al-Dawla had become effectively independent. He was succeeded by his brother
Baha' al-Dawla, but Samsam al-Dawla escaped from prison and captured Fars, Kerman and Khuzestan. ==Sources==