 Afshin had begun intriguing with Mazyar, a Karenid prince and "ispahbadh" of Tabaristan in the Caspian region.Afshin allegedly encouraged Mazyar in secret, in the hope that `Abdallāh bin Tāher would be deprived of his governorship allowing Afšīn to take over the governorship.Mazyar's rebellion was quashed in 839 and Afshin's position became increasingly difficult, which caused Afshin to fall from favour.