In August 1939, after another failure of attempts to establish an anti-Nazi alliance with Britain and France, the Soviet government decided to improve relations with Germany by concluding the Molotov-Ribbentrop Pact, pledging non-aggression between the two countries and dividing their spheres of influence in Eastern Europe.