From 1940 it was under Soviet occupation, from 1941 under German occupation, and in 1944 it came under Soviet occupation again.
As a result of the war, the city did not suffer much; the destruction was the result of Soviet air raids on the Germans. During the most devastating Soviet bombing raid on March 9-10, 1944, over a thousand incendiary bombs were dropped on the city. This caused extensive fires, the death of 757 people, and the loss of shelter to over 20.000 people. people.