In June 1940 the Soviet Union occupied and illegally annexed the three Baltic states (Estonia, Latvia and Lithuania). The Molotov–Ribbentrop Pact ostensibly provided security to the Soviets in the occupation both of the Baltics and of the north and northeastern regions of Romania (Northern Bukovina and Bessarabia, June–July 1940), although Hitler, in announcing the invasion of the Soviet Union, cited the Soviet annexations of Baltic and Romanian territory as having violated Germany's understanding of the Pact. Moscow partitioned the annexed Romanian territory between the Ukrainian and Moldavian Soviet republics.