Quba Khanate
Fatali Khan began to lead the Quba khanate starting from 1758, after his father Huseyn Ali Khan's death. Right after his father's death, the brother of the khan of Shirvan Khan, Agha-Razi Bey, invaded into Bermek mahal of Quba Khanate and carried off 200 families from there. In response, Fatali Khan set out to Shirvan and took captivate about 400 families and settled them onto his possessions; Agha-Razi Bey himself died in a struggle near old Shamakhi.