In 1747, Turkic ruler Panah Ali Khan Javanshir from the Azeri Javanshir clan, by then already a successful "naib" and royal gérant de maison, found himself displeased with Nader Shah's attitude towards him during the latters later years of rule, and having gathered many of those deported from Karabakh in 1736, he returned to his homeland. Due to his reputation as a skillful warrior and his wealthy ancestor's legacy in Karabakh, Panah Ali proclaimed himself and was soon recognized throughout most of the region as a ruler (khan). The Shah sent troops to bring back the runaway however the order was never fulfilled: Nader Shah himself was killed in Khorasan in June of the same year. The new ruler of Persia, Adil Shah issued a "firman" (decree) recognizing Panah Ali as the Khan of Karabakh.