 After Adil Shah was made king Karim Khan and his soldiers defected from the army and along with Ali Morad Khan Bakhtiari and Abolfath Khan Haft Lang, two other local chiefs, became a major contender but was challenged by several adversaries.Abolfath Khan was the Vizier, Karim Khan became the army chief commander and Ali Morad Khan became the regent.Karim Khan declared Shiraz his capital, and in 1778 Tehran became the second capital.