Rahim Khan of Ganja

[2] However, after death of Ahmad Khan Donboli in 1786, Ibrahim Khalil of Karabakh's major ally, later moved on to strengthen himself at the expense of Ganja.

In the early spring of 1786, at the insistence of Ibrahim Khan, his brother-in-law the Avar Umma Khan, attacked Ganja and "having taken 5,000 rubles of indemnity from this city," failing to completely capture Ganja, retreated to Shusha, leaving, however, part of the troops near the river Kura.

On June 25, Ibrahim while keeping the city under siege, sent his envoy Hazrat Qoli bey (former governor of Ganja for Karabakh) to Tiflis to Heraclius and offered him to send Prince Kaikhosro Andronikashvili (also former governor of Ganja for Georgia) with the army, "to rule as before".

However, the tense situation in the border regions with Akhaltsikhe required the constant presence of the tsarist troops there.

Thus, Rahim ruled for a year and was deposed by the Georgia[4] officially but Karabakh Khanate was the main instigator.