The NKVD also executed tens of thousands of Polish political prisoners in 1939–1941, including the Katyń massacre. NKVD units were also used to repress the partisan war in the Ukraine and the Baltics (which lasted until the early 1950s).