▁of ▁Iran , ▁until ▁N ader ▁Shah ▁exp elled ▁them . ▁At ▁the ▁beginning ▁of ▁the ▁reign ▁of ▁Kar im ▁Khan ▁Z and , ▁the ▁Az ad ▁Khan ▁Afghan ▁un success fully ▁revol ted ▁in ▁A zer ba ij an ▁and ▁later ▁the ▁D umb uli ▁Kur ds ▁of ▁K ho y ▁and ▁other ▁trib al ▁chief s ▁ruled ▁various ▁parts ▁of ▁the ▁territory . ▁Az ad ▁Khan ▁was ▁defeated ▁however ▁by ▁E rek le ▁II . ▁With ▁the ▁advent ▁of ▁the ▁Q aj ars , ▁A zer ba ij an ▁became ▁the ▁traditional ▁residence ▁of ▁the ▁he irs - app ar ent . ▁Even ▁until ▁then ▁A zer ba ij an ▁remained ▁the ▁main ▁area ▁from ▁where ▁the ▁high ▁ranked ▁govern ors ▁would ▁control ▁the ▁various ▁territ ories ▁and ▁Khan ates ▁of ▁the ▁C au cas us ▁while ▁the ▁main ▁power ▁stayed ▁in ▁Te h ran . ▁ ▁Though ▁the ▁first ▁Q aj ar ▁Iran ian ▁r uler , ▁Ag ha ▁Moh amm ad ▁Khan , ▁had ▁recon quer ed ▁the ▁C au cas us ▁and ▁all ▁of ▁Iran ▁in ▁several ▁swift ▁campaign s , ▁such ▁as ▁the ▁har sh ▁re - sub j ug ation ▁of ▁Georgia ▁in ▁ 1 7 9 5 , ▁Iran ▁would ▁eventually ▁ir rev oc ably ▁lose ▁all ▁of ▁the ▁C au cas us ▁region ▁to ▁neighbour ing ▁Imperial ▁Russia ▁during ▁the ▁course ▁of ▁the ▁ 1 9 th ▁century , ▁which ▁had ▁a ▁cru cial ▁impact ▁on ▁the ▁region ▁of ▁modern - day ▁Iran ian