Both fixed their eyes on occupying Poland, and they signed the ruthless Nazi-Soviet Pact in 1939, which stated that either would be free to pursue expansionist acts without the interference of the other.
Both the Nazis and the Soviets believed themselves free to expand into Poland.