Shahriyar was born in 1039, and in 1074, he ascended the Bavandid throne, taking the traditional title of ispahbadh of Mazandaran. He also moved the Bavand capital to Sari. Like his father, Shahriyar IV was a vassal of the Seljuq Empire.
In 1106, the Seljuq Sultan Muhammad I conquered the Ismaili fortress of Shahdiz, and ordered Shahriyar to participate in the campaign against Ismailis. Shahriyar, greatly angered and feeling offended by the message Muhammad sent him, refused to aid him against the Ismailis. Shortly after the sultan sent an army headed by Amir Chavli into Mazandaran. Shahriyar shortly called upon the aid of his vassals, which included the Qarinvand ruler Amir Mahdi. Shahriyar was also joined by his son Qarin III. He shortly defeated the army of Amir Chavli. Muhammad then sent a letter, which requested Shahriyar to send one of his sons child to the Seljuq court in Isfahan. He sent his son Ali I, who impressed Muhammad so much that he offered him his daughter in marriage, but Ali refused and told him to grant the honor to his brother and heir of the Bavand dynasty, Qarin III. Qarin III then went to Isfahan court and married her. After his return to Sari, however, he began claiming the Bavand throne for himself, and started abusing his father Shahriyar and his servants. Shahriyar then moved to Amol and later Rudsar, where he built a Khanqah, and devoted himself to religion. However, when he got sick, Qarin III apologized and restored him as the ruler of the Bavand dynasty.
Qarin III refusal to submit to the Seljuq atabeg of Ray, made the atabeg offer Ali an opportunity to conquer Mazandaran, with he agreed to. Shahriyar quickly sided with Qarin III and convinced Ali to withdraw. Nevertheless the strife continued among the two brothers. Ali later went to Marw and joined the Seljuq prince Ahmad Sanjar, the ruler of Khorasan. Ahmad Sanjar was preparing for an expedition to the west in order to take control of Gorgan, but an attack made by Muhammad Khan on the Seljuq borders, forced Ahmad Sanjar to move east in order to repel Muhammad Khan. This allowed Qarin III to capture Gorgan while Shahriyar stayed in Tamisha. Shahriyar later fell ill and died in 1114 and was officially succeeded by his son Qarin III, who already held power over the Bavand kingdom, while Shahriyar was a figurehead.
- Madelung, W. (1975). "The Minor Dynasties of Northern Iran". In Frye, R.N. The Cambridge History of Iran, Volume 4: From the Arab Invasion to the Saljuqs. Cambridge: Cambridge University Press. pp. 198–249. ISBN 978-0-521-20093-6.
- Bosworth, C. E. (1968). "The Political and Dynastic History of the Iranian World (A.D. 1000–1217)". In Frye, R. N. The Cambridge History of Iran, Volume 5: The Saljuq and Mongol periods. Cambridge: Cambridge University Press. pp. 1–202. ISBN 0-521-06936-X.
- Madelung, W. (1984). "ĀL-E BĀVAND (BAVANDIDS)". Encyclopaedia Iranica, Vol. I, Fasc. 7. London u.a.: Routledge & Kegan Paul. pp. 747–753. ISBN 90-04-08114-3.