both nations had opposed nazi germany although the united states worked with nazi scientists and soviet union had chosen not to fight with germany in the molotov-ribbentrop pact and the two occupied poland in 1939. however, germany turned against the soviet union in june 1941 and invaded it during operation barbarossa.