section_path: World War II/1939–1941: Pact with Nazi Germany
section_name: 1939–1941: Pact with Nazi Germany
paragraph_text: 1939–1941: Pact with Nazi Germany
  
  As a Marxist–Leninist, Stalin considered conflict between competing capitalist powers inevitable; after Nazi Germany annexed Austria and then part of Czechoslovakia in 1938, he recognised a war was looming. He sought to maintain Soviet neutrality, hoping that a German war against France and Britain would lead to Soviet dominance in Europe. Militarily, the Soviets also faced a threat from the east, with Soviet troops clashing with the expansionist Japanese in the latter part of the 1930s. Stalin initiated a military build-up, with the Red Army more than doubling between January 1939 and June 1941, although in its haste to expand many of its officers were poorly trained. Between 1940 and 1941 he also purged the military, leaving it with a severe shortage of trained officers when war broke out.
  
  As Britain and France seemed unwilling to commit to an alliance with the Soviet Union, Stalin saw a better deal with the Germans. On 3 May 1939, Stalin replaced his western-oriented foreign minister Maxim Litvinov with Vyacheslav Molotov. Germany began negotiations with the Soviets, proposing that Eastern Europe be divided between the two powers. Stalin saw this as an opportunity both for territorial expansion and temporary peace with Germany. In August 1939, the Soviet Union signed the Molotov–Ribbentrop pact with Germany, a non-aggression pact negotiated by Molotov and German foreign minister Joachim von Ribbentrop. A week later, Germany invaded Poland, sparking the UK and France to declare war on Germany. On 17 September, the Red Army entered eastern Poland, officially to restore order amid the collapse of the Polish state. On 28 September, Germany and the Soviet Union exchanged some of their newly conquered territories; Germany gained the linguistically Polish-dominated areas of Lublin Province and part of Warsaw Province while the Soviets gained Lithuania. A German–Soviet Frontier Treaty was signed shortly after, in Stalin's presence. The two states continued trading, undermining the British blockade of Germany.
  
  The Soviets further demanded parts of eastern Finland, but the Finnish government refused. The Soviets invaded Finland in November 1939, yet despite numerical inferiority, the Finns kept the Red Army at bay. International opinion backed Finland, with the Soviets being expelled from the League of Nations. Embarrassed by their inability to defeat the Finns, the Soviets signed an interim peace treaty, in which they received territorial concessions from Finland. In June 1940, the Red Army occupied the Baltic states, which were forcibly merged into the Soviet Union in August; they also invaded and annexed Bessarabia and northern Bukovina, parts of Romania. The Soviets sought to forestall dissent in these new East European territories with mass repressions. One of the most noted instances was the Katyn massacre of April and May 1940, in which around 22,000 members of the Polish armed forces, police, and intelligentsia were executed.
  
  The speed of the German victory over and occupation of France in mid-1940 took Stalin by surprise. He increasingly focused on appeasement with the Germans to delay any conflict with them. After the Tripartite Pact was signed by Axis Powers Germany, Japan, and Italy in October 1940, Stalin proposed that the USSR also join the Axis alliance. To demonstrate peaceful intentions toward Germany, in April 1941 the Soviets signed a neutrality pact with Japan. Although de facto head of government for a decade and a half, Stalin concluded that relations with Germany had deteriorated to such an extent that he needed to deal with the problem as de jure head of government as well: on 6 May, Stalin replaced Molotov as Premier of the Soviet Union.