Both groups of nations had opposed Nazi Germany. The Soviet Union had sporadically co-operated with Germany and shared in the division of Poland in 1939, but Germany turned against the Soviet Union in June 1941 with Operation Barbarossa.