Heraclius II of Georgia
From 1780 to 1783, the Ganja khanate was a condominium of Heraclius II of Georgia (represented by Prince Kaikhosro Andronikashvili) and Ibrahim-Khalil khan Javanshir of Karabakh (represented by the vizier, Hadrat Quli Beg). In 1783, Ganja rose up against its Georgian and Karabakh overlords. Georgians tried to reconquer Ganja at the end of 1784, but the campaign ended unsuccessfully. So did the Georgian invasions in 1785 and 1786. Under Javad Khan's rule from 1785 to 1804, the Ganja khanate grew in economic and political importance. The khans had their own mint in Ganja.