Бабек
Mazyar was brought to Samarra, where he was executed. His body later was gibbeted along with the body of Babak Khorramdin. Mazyar's brother Quhyar was shortly after killed by his own Daylamite soldiers because of his betrayal of Mazyar. This marked the end of the Qarivand dynasty. This left the Tahirids as the rulers of Tabaristan, and Qarin I was restored as the ruler of the Bavand dynasty as a vassal.