Violating the Molotov–Ribbentrop Pact, Nazi Germany invaded the Soviet Union in June 1941. The government worked to relocate factories from western Russia and Ukraine to Tashkent to preserve the Soviet industrial capacity. This led to great increase in industry during World War II.