Baku Khanate was Persian ruled Khanate (principality) on the territory of modern day Azerbaijan from Safavid dynasty to 1806. Baku was one of Khanate (principalities) which arose during the domination of Iran. During the period of Iranian domination, head of principality was a Khan. Although, the khan could act within certain independence, he was vassal of the Iranian shah (King).
It was founded by Dargah Quli Khan of the Afshar tribe, whose Kizilbash ancestors were granted lands near Baku in 1592. Khanate was independent during the reign of his son Mirza Muhammad Khan, later the khanate became a dependency of a stronger khanate of Quba. Feudal infighting in the 1790s resulted in Husayn Quli Khan taking the power away from Russian-leaning brother, Muhammed Quli Khan (father of a writer Abbasqulu Bakikhanov).
Russian forces tried to besiege Baku during third Russo-Persian War (1804-1813) (1804–1813). They were led by general Pavel Tsitsianov, who was assassinated in February 1806, near the city gates. Baku was finally occupied by Russian forces led by general Bulgakov in September 1806, and Husayn Quli Khan was forced into exile.
- 172?-1728 Dargah Quli Khan
- 1747–1768 Mirza Muhammad Khan
- 1768 -1770 Fath `Ali Khan
- 1770–1772 Abd Allah Beg
- 1772–1783 Malik Muhammad Khan
- 1784–1791 Mirza Muhammad Khan
- 1791–1792 Muhammad Quli Khan
- 1792–1806 Husayn Quli Khan
- Encyclopaedia Britannica Online: History of Azerbaijan 
- Russian Azerbaijan, 1905–1920 By Tadeusz Swietochowski page 272
- Russia and Iran, 1780-1828By Muriel Atkin, Page 16-20
- Encyclopedia of Soviet law By Ferdinand Joseph Maria Feldbrugge, Gerard Pieter van den Berg, William B. Simons, Page 457