In early 1944, the city became part of the Soviet Union and was renamed 'Stanislav'. The Soviets forced most of the Polish population to leave the city, most of them settled in the Recovered Territories. During the post-war period the city was part of the Carpathian Military District housing the 38th Army (70th Motor Rifle Division) that participated in the Operation Dunai.