Rēzekne was heavily damaged by both Nazi and Soviet armies during World War II; after heavy air-bombing by Soviet forces in 1944, 2/3 of its original buildings were completely destroyed. Out of a pre-war population of 13,300, only 5,000 people remained in the city at the end of the war. Rēzekne was rebuilt after the war with an emphasis on industrial development. Rēzekne had the 5th highest industrial output in the Latvian SSR, including a dairy processor, lumber mill, and electric-instrument factory. During this time, many Russians moved to the city, making up a large part of the population (48.5% in 2007).