 Zubov stormed Derbent on 10 May and captured Shaykhali, moving on to Baku.However Huseyngulu sent envoys to Zubov on 20 May, explaining his will to submit.Khan himself arrived at Russian encampment near Gilgilçay on 13 June with city keys.