Romania is a unitary semi-presidential republic located in Southeastern Europe, north of the Balkan Peninsula and on the western shore of the Black Sea. It borders Hungary, Serbia, Ukraine, Moldova, and Bulgaria. It covers 238,391 square kilometres (92,043 sq mi) and has a temperate-continental climate. With its 20.1 million inhabitants, it is the seventh most populous member of the European Union. Its capital and largest city, Bucharest, is the sixth largest city in the European Union.
Modern Romania emerged within the territories of the ancient Roman province of Dacia, and was formed in 1859 through a personal union of the principalities of Moldavia and Wallachia. The new state, officially named Romania since 1866, gained independence from the Ottoman Empire in 1877. At the end of World War I, Transylvania, Bukovina and Bessarabia united with the sovereign Kingdom of Romania. At the end of World War II, territories which today roughly correspond to the Republic of Moldova were occupied by the Soviet Union, and a few years later Romania became a socialist republic and member of the Warsaw Pact. After the 1989 Revolution, Romania began a transition back towards democracy and a capitalist market economy.