▁Qu hy ar ▁( ), ▁was ▁the ▁r uler ▁of ▁the ▁Q ar inv and ▁dynast y , ▁r uling ▁briefly ▁in ▁ 8 3 9 ▁until ▁his ▁assass ination . ▁ ▁Biography ▁ ▁Qu hy ar ▁was ▁the ▁son ▁of ▁Q arin ▁ibn ▁V ind ad hh ur mu zd , ▁and ▁had ▁a ▁brother ▁named ▁Maz yar , ▁who , ▁after ▁asc ending ▁the ▁Q ar inv and ▁throne , ▁was ▁rep elled ▁from ▁Tab ar istan ▁by ▁his ▁uncle ▁V inda - U mid ▁and ▁the ▁Bav andid ▁r uler ▁Shah ri yar ▁I . ▁However , ▁Maz yar ▁returned ▁in ▁ 8 2 2 / 2 3 ▁with ▁the ▁support ▁of ▁the ▁Abb as id ▁C ali ph ate ▁to ▁take ▁reven ge . ▁Sh ap ur , ▁who ▁was ▁the ▁son ▁and ▁successor ▁of ▁Shah ri yar ▁I , ▁was ▁defeated ▁and ▁killed ▁along ▁with ▁V inda - U mid . ▁Maz yar ▁then ▁un ited ▁Tab ar istan ▁under ▁his ▁own ▁rule . ▁ ▁Maz yar , ▁however , ▁later ▁re bel led ▁against ▁the ▁Abb as id ▁C ali ph ate , ▁an ▁act ▁which ▁was ▁widely ▁supported ▁by ▁the ▁native ▁Z oro ast ri ans , ▁who ▁began ▁pl und ering ▁the ▁Muslim ▁villages . ▁The ▁T ah ir id ▁r uler ▁Ab dal lah ▁ibn ▁T ah ir ▁al - K h uras ani ▁and ▁the ▁Abb as id ▁cal i ph ▁al - M u ' t as im ▁shortly ▁sent ▁five ▁corps