|Tomb of Qabus in Gonbad-e Qabus|
|977–981 (first reign) 997–1012 (second reign)|
Qabus ibn Wushmagir (full name: Abol-Hasan Qābūs ibn Wušmagīr ibn Ziyar Sams al-maʿālī, ابوالحسن قابوس بن وشمگیر بن زیار, شمس المعالی; (r. 977–981; 997–1012, d. 1012) was the Ziyarid ruler of Gurgan and Tabaristan in medieval Iran. He was the son of Vushmgir and a daughter of the Bavandi Ispahbad Sharvin.Contents
Upon Vushmgir's death in 967, his eldest son Bisutun marched to the capital Gurgan to take control of the Ziyarid state. A Samanid army that had arrived shortly before Vushmgir's death for a joint campaign against the Buyids, however, threw its support behind Qabus. When Bisutun gained the assistance of the Buyid Rukn al-Daula the Samanid army left for Khurasan. Qabus found a new ally in al-Hasan ibn al-Fairuzan, who ruled in Semnan, but Bisutun occupied both Gurgan and Semnan, forcing Qabus to give up his claims as his father's successor.Reign
Bisutun's death in 977 provided Qabus with another opportunity to take control of the Ziyarids. Bisutun's governor of Tabaristan, the Gilite Dubaj ibn Bani, supported the deceased ruler's young son, and could rely on Samanid support. Qabus gained the loyalty of the Ziyarid army, however, and received assistance from the Buyid 'Adud al-Daula. Taking Gurgan from Dubaj, he captured Bisutun's son in Semnan. In 978 or 979 the caliph al-Ta'i granted Qabus the title Shams al-Ma'ali.
In 980 Qabus offered refuge to the Buyid ruler of Ray, Fakhr al-Daula, who had recently fought a losing war with 'Adud al-Daula. The latter offered the Ziyarid money and territory in exchange for the surrender of Fakhr al-Daula, but Qabus refused. 'Adud then invaded and conquered Tabaristan; in 981 'Adud's brother Mu'ayyad al-Daula took Gurgan. Qabus and Fakhr al-Daula were forced to flee to Samanid Khurasan. The Samanids sent a force to take back the provinces, but were unsuccessful.
In 984 Fakhr al-Daula was able to recover his territories in Ray. Upon the advice of his vizier, however, he refused to give back Qabus control of Gurgan and Tabaristan. Qabus was forced to live in exile until 997, when Fakhr al-Daula died and was succeeded by his young son Majd al-Daula. Supporters of the Ziyarid gained control of Tabaristan and from there conquered Gurgan. Qabus returned there in 998. After a few Buyid attempts to expel him again failed.
Although he formally recognized the caliph as his sovereign, Qabus ruled effectively as an independent ruler for the rest of his reign. He opened up relations with Mahmud of Ghazna, setting the stage for the eventual Ghaznavid takeover of the Ziyarids, while the Buyids did not undertake any more campaigns against him. Internal troubles, however, soon cost Qabus his position. His heavy-handed approach with officials in the army eventually caused a conspiracy to be formed against him.
The army leaders failed to capture him in his castle outside Gurgan, but they took control of the capital and invited Qabus's son Manuchihr, the governor of Tabaristan, to take over. Manuchihr feared that he would lose the succession if he refused and joined the conspirators. He chased Qabus to Bistam, where the latter eventually agreed to abdicate. He retired to a castle where he could spend the rest of his life in devotion. The conspirators, however, still considered him to be a threat and had him frozen to death in 1012.
The tower of Gonbad Kavous was built for him as his tomb, and he is the subject of the Qabus nama, a major work of Persian literature from the eleventh century, which was written by his grandson.
His wife was the daughter of Mahmud of Ghazni of the Ghaznavid dynasty.