[4][5] His line would continue ruling Padishkhwargar until the second reign of Kavad I (r. 488–496, 498–531), who removed the dynasty from power and appointed his son Kawus in its stead.
[7] In the 640s, the Dabuyid prince Gil Gavbara (r. 642–660), who was a great-grandson of shahanshah Jamasp (r. 496–498/9), conquered all of Daylam and Gilan and planned on extending his conquests to Tabaristan.
Being unable to suppress the revolt, Yazdegerd III instead acknowledged Gil Gavbara as the ruler of the regions, presumably to deter him from creating an independent realm.
Gil Gavbara was given the titles of Padashwārgarshāh (shah of Padishkhwargar) and "Ispahbad of Khorasan", possibly indicating Dabuyid rule in eastern Iran.
[9][10] His son Baduspan I was granted control over Ruyan (a district that encompassed the western part of Tabaristan) in 665, thus forming the Baduspanid dynasty, which would rule the region until the 1590s.
In 716, the Dabuyid ruler Farrukhan the Great (r. 712–728) successfully contained a large-scale invasion by the Umayyad general Yazid ibn al-Muhallab.
[13][14] Tabaristan was subsequently made a regular province of the caliphate, ruled from Amul by an Arab governor, although the local dynasties of the Bavandids, Qarinvandids, the Zarmihrids and Baduspanids, formerly subject to the Dabuyids, continued to control the mountainous interior as tributary vassals of the Abbasid government.
[19] The second governor, Khalid ibn Barmak,[20] had attempted to build towns and befriend the Qarinvand ruler Wandad Hurmuzd (r. 765–809) in order to increase Abbasid influence there.
Although Wandad Hurmuzd and Sharwin I had reassured their pledge to the caliph al-Mahdi in 781, they mounted a threatening anti-Muslim rebellion with the Masmughan of Miyanrud two years later.
The modern historian Wilferd Madelung considers it exaggerated, and suggests that the massacres only took place in the highlands and segments of the lowlands that the rebels where able to penetrate.
The Bavandids and Qarinvandids disallowed any Muslim to get buried in Tabaristan, and the soldiers of Sharwin I had killed the caliphal deputy of the region, who was the nephew of the governor Khalifa ibn Sa'id.
[26] Christian tribes also inhabited Tabaristan, and fought the Arabs around 660, but were defeated after heavy resistance and either killed or enslaved if they did not convert to Islam.