Sharwin I
Sharwin I (Persian: شروین) was the fifth ruler of the Bavand dynasty from 772 to 817. He was the son and successor of Surkhab II. Background. In 760, during the reign of Sharwin's father Surkhab II, Khurshid, the head of the Dabuyid dynasty that had ruled Tabaristan since the Muslim conquest of Persia, revolted against the Abbasid Caliphate. Khurshid was defeated and poisoned himself after learning that his family had been captured by the Abbasids. This marked the end of the Dabuyid dynasty, but other minor dynasties in the region such as the Bavandids, Karenids and Zarmihrids , who were all formerly subject to the Dabuyids, continued to control parts of Tabaristan as tributary vassals of the Abbasid government. Biography. In 772, Surkhab II died, and was succeeded by Sharwin I. During the same period, Khalid ibn Barmak, the Abbasid governor of Tabaristan, left the region. Shortly after Khalid's departure, the Karenid ruler Vandad Hormozd sent Sharwin a letter which urged him to revolt against the Abbasids. Sharwin accepted, and along with Vandad Hormozd and the Zarmihrid ruler revolted against the Abbasids. Sharwin then began destroying the cities built by the Muslims in the region, and in  782, along with Vandad Hormozd, exterminated all the Muslims in Tabaristan. During the same period, the Karenids assumed the former Dabuyid title of "Gilgilan", while Sharwin assumed the title of "Padashwargarshah" ("King of the Mountains"). Sharwin and the other rulers of Tabaristan managed to repel several Arab invasions of Tabaristan, until they were finally defeated in 785, and once again agreed to pay tribute to the Abbasid caliphs. In 805, the Abbasid caliph Harun al-Rashid visited Ray where he met Sharwin and Vandad Hormozd, who reaffirmed their submission to him and promised to pay tax. In order to ensure  their loyalty, Harun took Sharwin's grandson Shahriyar I and Vandad Hormozd's son Karin as hostages to Baghdad. The two princes were allowed to return to Tabaristan after Harun's death four years later. Sharwin died in 817, and was succeeded by his grandson Shahriyar I.