In 1940 Romania's territorial gains made following World War I were largely undone. In July, after a Soviet ultimatum, Romania agreed to give up Bessarabia and northern Bukovina (the Soviets also annexed the city of Hertsa, which was not stated in the ultimatum). Two-thirds of Bessarabia were combined with a small part of the Soviet Union to form the Moldavian Soviet Socialist Republic. The rest (northern Bukovina, the northern half of Hotin county and Budjak) was apportioned to the Ukrainian Soviet Socialist Republic.