During the German invasion of Poland and Western Europe (1939–1941) Soviet Union presented a friendly stance towards Germany with Molotov–Ribbentrop Pact, a joint military parade, a number of German-Soviet commercial agreements and cooperation of NKVD and Gestapo in suppressing of resistance on the occupied territories.