 Huseyngulu 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 Huseyngulu fled to Ardabil with his family.