The Molotov-Ribbentrop Pact was a non-aggression pact signed in 1939 between Nazi Germany and the Soviet Union that included secret clauses dividing Eastern Europe between the two countries and neutrality if either went to war; it allowed Hitler to avoid war on two fronts and gave Stalin time and space as a buffer against Germany, though it was only a temporary alliance between the two dictators.