Baku was again a matter of interest to Russians during the
Russo-Persian War of 1804–13. As a result of
Tsitsianov's negotiations in early 1803, an agreement was reached with the ambassador of the khan of Baku, Allahverdi Beg, on conceding Baku to Russia. On 24 April 1803, Tsitsianov asked Vorontsov to dispatch two regiments (from
Taman and the
Crimea) at his disposal for the garrison in Baku and the occupation of other points lying about. However, in 1804, at the insistence of the Baku and Shemakhan nobility, the agreement with Russia was cancelled by Hosein Qoli Khan. Soon tensions rose in Baku, as city folk killed 7 of the Russian consul's soldiers, expelling him out of the city. In 1805, a Russian squadron entered the Baku bay under the command of General Irinarch Zavalishin and proceeded to siege the city. Khan sent an envoy to Zavalishin to negotiate, however, he responded that he had been sent by the emperor to occupy Baku and demanded the immediate surrender of the city. Khan asked for a time to give an answer. On 15 April, when the deadline passed and the city did not surrender, Zavalishin landed ashore. However, with reinforcements from
Shaykhali khan and Nuh beg of
Derbent, khan prevailed in defence of the city. Having suffered defeat after several battles, the Russians boarded the ships and retreated to the island of Sari (near
Lankaran). On 27 December 1805,
Tsitsianov informed Alexander I that he himself was going with the army to Baku, to help Zavalishin. At the beginning of February 1806, Tsitsianov, marching with a large army, joined forces with General Zavalishin 2
versts from Baku and began negotiations with khan about the surrender of the fortress to the Russians. Russian troops encamped near Nakhirbulag, just next to city walls. On 8 February, khan, accompanied by his retinue, left the fortress to present city keys to Prince Tsitsianov. In a surprise to many, khan's cousin Ibrahim beg suddenly gunned Tsitsianov and killed him. Hosein Qoli Khan went to
Ağsu in person to submit
Abbas Mirza. Meanwhile,
Mirza Muhammad Khan II joined army of Russian general Sergei Bulgakov in July 1806 to guide Russian army to Baku. Together they captured Baku on 6 October 1806, while Hosein Qoli Khan fled to
Ardabil with his family. Hosein Qoli Khan
appeared again in 1826, this time with Qajar army to recapture Baku, but failed to do so. He died in
Ardabil, 1845 and was buried in
Karbala. == Family ==