Tabaristan or Tabarestan (Persian: طبرستان, romanized: Ṭabarestān, or Mazanderani: تبرستون, romanized: Tabarestun, ultimately from Middle Persian:
, Tapur(i)stān), was a mountainous region located on the Caspian coast of northern Iran. It corresponded to the present-day province of Mazandaran, which became the predominant name of the area from the 11th-century onwards.
Tabaristan was named after the Tapurians, who had been deported there from Parthia by the Parthian king Phraates I (r. 176–171 BC). At the advent of the Sasanians, the region, along with Gilan and Daylam, was part of the Padishkhwargar kingdom of king Gushnasp, who is mentioned in the Letter of Tansar. He submitted to the first Sasanian King of Kings (shahanshah) Ardashir I (r. 224–242 AD) after being guaranteed to keep his kingdom. 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. Under the Sasanians, Tabaristan enjoyed considerable autonomy. They most likely left most of the affairs to the locals. The mint signature of "AM" is generally presumed to be an abbreviation for the Amul, the main city of the region. The first known Sasanian monarch to have minted coins with the signature was Bahram V (r. 420–438), whilst the last was Boran (r. 630–630, 631–632).
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. Its governor, Adhar Valash, requested the aid of (shahanshah) Yazdegerd III (r. 632–651). 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. Gil Gavbara maintained the independence of his realm during the Arab invasion of Iran, which had resulted in the collapse of the Sasanian Empire.