Quba Khanate
Children of Aghasi Khan and Muhammad Said khan were killed or exiled from Shirvan. Once Fatali Khan died, they came back restored their khanate. Askar Khan, Qasim Khan, and Mostafa Khan ruled after the decline of Quba Khanate. In 1795 the Russians captured Shamakhi as well as Baku as part of Persian Expedition of 1796 by Valerian Zubov. However, the campaign was abandoned and the army recalled after Catherine's death.