 Mazyar 's rebellion had important repercussions in Samarra . The <unk> 's intransigence had been secretly encouraged by Afshin , who hoped to discredit the Tahirids and assume their vast governorship in the east himself , but after the defeat of Mazyar , their correspondence was discovered . Already an exception among the <unk> elite due to his Iranian princely origins , and possibly suspect in the Caliph 's eyes due to the independent military following he commanded , this discovery served to discredit Afshin and provided the pretext for a show trial , where he was accused , among other things , of being a false Muslim , and of being accorded divine status by his subjects in his native <unk> . Afshin was found guilty and thrown into prison , where he was starved to death in 841 . Once more , the affair enhanced the standing of the Turkish leadership , who now received Afshin 's revenue and possessions . At about the same time , <unk> al @-@ <unk> , whom Afshin had appointed as governor of Adharbayjan after the defeat of the Khurramites , rose up in revolt , either because he had been involved in financial irregularities , or because he had been a co @-@ conspirator of Afshin 's . Bugha the Elder marched against him , forcing the rebel to capitulate and receive a safe @-@ passage for Samarra in 839 / 40 . 
