 Nyorai kupfuurira kweiyi ndima - Muna 1796 apo vaRussia vakanga vachifambaKuGeorgia neTranscaucasia, Agha Mohammad Khan muTehran akasarudza Mirza Shafi Mazandarani se kalantar weTehran uye akabva aenda neuto kuti atarisana naValerian Zubov. kubvira Pakupinda kweKhorasan, Mirza Shafi akaenda naAgha Mohammad Khan semupi wezano. MuMashhad, pamurayiro wake, Shahrokh Afshar akatambudzwa kuti aratidze zvishongo zvoumambo zvaNader Shah. Mirza Shafi haana kuvimba naEbrahim sezvo akamuona semutengesi kuna Lotf Ali Khan uye akatenda kuti aizoita zvakafanana kuna Agha Mohammad Khan. Mirza Shafi, akanga anewo vavariro, akatsvaka kushora Ebrahim naAgha Mohammad Khan, kuitira kuti nokubviswa kwake, iye aizova Grand Vizier iye amene. Nokudaro, makwikwi akamuka pakati pevaviri, avo vakatsvaka kunyengetedza Agha Mohammad Khan kuti adzinge mumwe. 