Mostafa Khan of Shirvan

Mostafa Khan of Shirvan
Khan of Shirvan
Reign1792–1820
PredecessorQasim Khan
SuccessorKhanate abolished
Born1768 (1768)
Shamakhi, Shirvan Khanate
Died17 September 1844(1844-09-17) (aged 75–76)
Mustafaxanlı, Russian Empire
Burial
IssueJavad khan Shirvanski
HouseSarkar
DynastyKhanchobani
FatherAghasi Khan
MotherBibikhanim, daughter of Safarali Sultan
ReligionSunni Islam

Mostafa Khan of Shirvan (Persian: مصطفی خان شیروانی, romanized: Moṣṭafā Khān Shirvānī; Russian: Мустафа-хан Ширванский; 1768 – 17 September 1844) was the last Khan of Shirvan under Russian suzerainty. He ruled the Shirvan Khanate from 1792 until his deposition by General Yermolov in August 1820. Known to the Russian army as "the bearded serpent of Shirvan," he was simultaneously one of Russia's most important vassals and, in Russian commanders' private assessments, one of the most difficult to control. His khanate, the largest in the Caucasus by population, submitted formally to Russia in 1805 but was never fully integrated into the imperial administrative system during his lifetime.

Loyal to Russia from 1803, he was deposed on accusations that every formal Russian investigation found unproven. He kept his stated promise not to take up arms against Russia — until six years of Persian exile left him no alternative. He entered Russian allegiance a second time in 1831 and settled in Karabakh, where he died in 1844. He never returned to Shirvan.