Between October 1940 and February 1942, in spite of the ongoing German attack on the Soviet Union in June 1941, the Red Army, in particular the Soviet Air Force, as well as Soviet military-related industries were subjected to purges by Stalin.
The Great Purge ended in 1939. In October 1940 the NKVD (People's Commissariat of Internal Affairs), under its new chief Lavrenty Beria, started a new purge that initially hit the People's Commissariat of Ammunition, People's Commissariat of Aviation Industry, and People's Commissariat of Armaments. High-level officials admitted guilt, typically under torture, then testified against others. Victims were arrested on fabricated charges of anti-Soviet activity, sabotage, and spying. The wave of arrests in the military-related industries continued well into 1941.
In April–May 1941, a Politburo inquiry into the high accident rate in the Air Force led to the dismissal of several commanders, including the head of the Air Force, Lieutenant General Pavel Rychagov. In May, a German Junkers Ju 52 landed in Moscow, undetected by the ADF beforehand, leading to massive arrests among the Air Force leadership. The NKVD soon focused attention on them and began investigating an alleged anti-Soviet conspiracy of German spies in the military, centered around the Air Force and linked to the conspiracies of 1937–1938. Suspects were transferred in early June from the custody of the Military Counterintelligence to the NKVD. Further arrests continued well after the German attack on the Soviet Union, which started on June 22, 1941.
During the first months of the war, scores of commanders, most notably General Dmitry Pavlov, were made scapegoats for failures. Pavlov was arrested and executed after his forces were heavily defeated in the early days of the campaign. Only two of the accused were spared: People's Commissar of Armaments Boris Vannikov (released in July) and Deputy People's Commissar of Defense General Kirill Meretskov (released in September). The latter had admitted guilt, under torture.