Fatali Khan
In 1785, Fatali khan seized Talish Khanate. Then the Khan of Quba entered into a friendship alliance with Magomed – a successor of Tarki shamkhal Murtuzali, and two years later he married his elder brother Ahmad to his daughter Gichi-bike. In that very year, Fatali Khan defeated Nahammad Hasan Khan of Sheki and former ruler of Shamakhi Aghasi Bey. The latter yielded to the winner, but the Khan of Sheki made peace with Fatali Khan. At first, Aghasi Khan was kept in Quba with his sons, but later they were sent to Baku. Besides that, Fatali Khan demanded from Mahammad Hasan Khan of Sheki to givge away his brother Aghasi khan, former Khan of Shamakhi Mahammad Seyid Khan with his two sons, but soon they themselves came to the ruler of Quba and were sent to Salyan. In 1788, Fatali khan ordered to execute khans of Shamakhi with their sons: Aghasi khan with his sons Ahmad bey and Mahammad bey in Baku, Mahammad Seyid Khan with his two sons Mahammad bey and Isgender Bey in Salyan, and also one more son of Mahammad Seyid Khan and his son-in-low Mahammad Rza Bey in Quba.