Majd al-Dawla

Majd al-Dawla's reign saw the gradual shrinking of Buyid holdings in central Iran; Gurgan and Tabaristan had been lost to the Ziyarids in 997, while several of the western towns were seized by the Sallarids of Azerbaijan.

Following the death of Sayyida Shirin in 1028, Majd al-Dawla was faced with a revolt by his Daylamite soldiers, and thus requested the assistance of the Ghaznavid ruler Mahmud (r. 998–1030) in dealing with them.

Mahmud came to Ray in 1029, deposed Majd al-Dawla as ruler, and sacked the city, bringing an end to Buyid rule there.

Abu Talib Rustam was a member of the Buyid dynasty, a Daylamite family which ruled mainly over what is now the south and western part of Iran, as well as all of present-day Iraq.

[11] Following Fakhr al-Dawla's death, the Ziyarid ruler Qabus (r. 977–981, 997–1012) conquered Tabaristan and Gurgan, which he had previously ruled before being defeated by the Buyids.

[12] The Hasanwayhid chieftain Badr ibn Hasanwayh (r. 979–1013), who ruled around Qirmisin as a Buyid vassal,[13] went to Ray to help Majd al-Dawla administer the local affairs, but his help was rebuffed.

[14] By at least as early as 1003, Sayyida Shirin had secured the governorship of Isfahan to her first cousin Ala al-Dawla Muhammad, thus marking the start of the Kakuyid dynasty.

[19] In the same year, the distinguished Persian polymath Avicenna (died 1037) went to Ray, where he entered into the service of Majd al-Dawla and Sayyida Shirin.

[20][21] Avicenna later joined Shams al-Dawla, possibly due to his opponent Abu'l-Qasim al-Kirmani also working under Sayyida Shirin.

[22] In 1016, Majd al-Dawla and Sayyida Shirin declined the demand of the Daylamite military officer Ibn Fuladh to become the governor of Qazvin.

With the help of the Bavandid prince Abu Ja'far Muhammad (died 1028), Majd al-Dawla repelled Ibn Fuladh from Ray, who fled to the Ziyarid ruler Manuchihr (r. 1012–1031).

Reinforced by 2,000 troops by Manuchihr, Ibn Fuladh laid siege to Ray, thus forcing Majd al-Dawla to appoint him as the governor of Isfahan.

Following this event, records of Ibn Fuladh disappear, which suggests he was unable to dislodge the then incumbent governor of Isfahan, Ala al-Dawla Muhammad.

Mahmud had been keen to expand his power to the west, but had refrained from attacking Ray due to the resolute presence of Sayyida Shirin.

[31] From the end of the 10th-century to 1029, Ray had flourished as a center of learning, possibly partly due to maintaining its independence from other Buyid principalities, as well as only occasionally being involved in dynastic struggles.

Coin of Shams al-Dawla ( r. 997–1021 ), the younger brother of Majd al-Dawla and ruler of Hamadan and Qirmisin
Coin of the Ghaznavid ruler Mahmud ( r. 998–1030 ), who overthrew Majd al-Dawla