 On 27 June - 1 July 1918, in the battle near Goychay, the Ottoman Islamic Army of the Caucasus defeated the Red Army and started advancing towards Baku.At this point, earlier in June, Bicherakhov was in the vicinity of Qazvin, trying to go north.After defeating some Jangalis, he proceeded to check the situation in Baku.