Moldova (, sometimes), officially the Republic of Moldova (Republica Moldova), is a landlocked country in Eastern Europe, bordered by Romania to the west and Ukraine to the north, east, and south. The capital city is Chișinău.
Most of the Moldovan territory was a part of the Principality of Moldavia from the 14th century until 1812, when it was ceded to the Russian Empire by the Ottoman Empire (to which Moldavia was a vassal state) and became known as Bessarabia. In 1856, southern Bessarabia was returned to Moldavia, which three years later united with Wallachia to form Romania, but Russian rule was restored over the whole of the region in 1878. During the 1917 Russian Revolution, Bessarabia briefly became autonomous and then the independent Moldavian Democratic Republic until it was integrated into Romania in 1918 following a vote of its assembly. The decision was disputed by Soviet Russia, which in 1924 allowed the establishment, within the Ukrainian SSR, of a Moldavian autonomous republic (MASSR) on partial Moldovan-inhabited territories to the east of the Dniester. In 1940, as a consequence of the Molotov–Ribbentrop Pact, Romania was compelled to cede Bessarabia to the Soviet Union, leading to the creation of the Moldavian Soviet Socialist Republic (Moldavian SSR), which included the greater part of Bessarabia and the westernmost strip of the former MASSR.