1. Shirdil, who now used the title "Sharaf al-Dawla", soon found his position surrounded by enemies.

1. Shirdil, who now used the title "Sharaf al-Dawla", soon found his position surrounded by enemies.
The next few years were spent by Sharaf al-Dawla fighting against all of these individuals.
Sharaf al-Dawla provided support to the Samanids when Fakhr al-Dawla attempted to wrest Khorasan from them.
Sharaf al-Dawla recovered Buyid Oman, which had earlier seceded to Samsam al-Dawla.
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.
Sharaf al-Dawla entered Baghdad in 987, deposed Samsam al-Dawla and imprisoned him along with his official Fuladh ibn Manadhar in Fars.
Sharaf al-Dawla had the Daylamite officer Ziyar ibn Shahrakawayh executed.
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.
Sharaf al-Dawla had managed to mostly preserve 'Adud al-Dawla's empire, but the Buyids of Ray under Fakhr al-Dawla had become effectively independent.
Sharaf al-Dawla was succeeded by his brother Baha' al-Dawla, but Samsam al-Dawla escaped from prison and captured Fars, Kerman and Khuzestan.