The Molotov-Ribbentrop Pact (August 1939) allowed the Soviet Union to take back Bessarabia and northern Bukovina in June 1940, leading to the June 1940 Soviet Ultimatum and Soviet occupation of those regions. In August 1940 Germany and Italy mediated Romanian disputes with Hungary about Transylvania (resulting in the Second Vienna Award) and with Bulgaria regarding Dobruja (resulting in the Treaty of Craiova).