The Quba Khanate was an independent khanate on the territory of modern day Azerbaijan from 1747-1806. The Quba Khanate was founded as a feudal hold around 1680 as a result of a land grant to the Saytaq family, who were related to both the Qajar dynasty and the Utsmi (duke) of Tarki in Dagestan and were thus highly respected among the local khanates of Azerbaijan.
The principality achieved independence after the dissolution of Safavid Empire in 1747 and achieved its greatest prominence under Fath Ali Khan(Feteli Khan) (1758-1789).
As a result of conquests and successful alliances, Fath Ali Khan seized the important port of Baku, the Shamakha Khanate and the Salyan Khanate and organized expeditions as far south as Ardabil in his fight against the Zand dynasty.
The Quba Khanate relied heavy upon Russian arms in all their campaigns. In revenge for the killing of a Russian scientist in 1775, Samuel Gottlieb Gmelin, Russian help was withdrawn, leading to subsequent defeats.
After Fath Ali Khan's death, the Khanate's influence declined. As a result of Mohammad Khan Qajar's conquests and the devastation its brought, the Alliance of Northern khanates disintegrated. The Khanate was conquered by Russia in 1806, and was fully incorporated into newly created Shamakha Governorate by 1816.
Read more about Quba Khanate: Saytaq Khans Rulers