In late June the division was relocated to the Western Front and as part of the 16th Army fought in the Polish–Soviet War on the Berezina in the area of Smolevichi and Ozerishche. On 11 July the 27th captured Minsk, then fought in the breakthrough of the fortified positions at Baranovichi, the capture of Slonim, and the crossing of the Bug. In August the division fought in the Battle of Warsaw before retreating back into Belarus. From January 1921, Anashkin served as a platoon commander and acting company commander with the 239th in fighting against anti-Soviet forces in Vitebsk, Minsk, and Gomel Governorates, and in March he participated in the suppression of the Kronstadt rebellion, then in the suppression of anti-Soviet forces in the Volga Military District.