On 12 September, XXI was moved to defensive duty towards the Białystok area. In this function, it made contact with forces of the Red Army that entered Poland from the east with the Soviet invasion that started on 17 September.