sentences:  After his death in 817, Sharvin was succeeded by his grandson, Shahriyar I, who managed to evict the Karenid Mazyar from his own realm.Mazyar fled to the court of the Caliph al-Ma'mun, became a Muslim and in 822/23 returned with the support of the Abbasid governor to exact revenge