On 28 June 1940, as a direct result of the Molotov–Ribbentrop Pact, Bessarabia was annexed by the Soviet Union from Romania, and Chișinău became the capital of the newly created Moldavian Soviet Socialist Republic.