Ukraine is a country in Eastern Europe. It is the second-largest country in Europe after Russia, which borders it to the east and northeast. Ukraine also borders Belarus to the north; Poland and Slovakia to the west; Hungary, Romania and Moldova to the southwest; and the Black Sea and the Sea of Azov to the south and southeast. Kyiv is the nation's capital and largest city, followed by Kharkiv, Odesa, and Dnipro. Ukraine's official language is Ukrainian.
Humans have inhabited Ukraine since 32,000 BC. During the Middle Ages, it was the site of early Slavic expansion and later became a key centre of East Slavic culture under the state of Kievan Rus', which emerged in the 9th century. Kievan Rus' became the largest and most powerful realm in Europe in the 10th and 11th centuries, but gradually disintegrated into rival regional powers before being destroyed by the Mongols in the 13th century. For the next 600 years the area was contested, divided, and ruled by a variety of external powers, including the Grand Duchy of Lithuania, the Kingdom of Poland, the Polish–Lithuanian Commonwealth, the Austrian Empire, the Ottoman Empire, and the Tsardom of Russia.
The Cossack Hetmanate emerged in central Ukraine in the 17th century but was partitioned between Russia and Poland before being absorbed by the Russian Empire in the late 19th century. Ukrainian nationalism developed and, following the Russian Revolution in 1917, the short-lived Ukrainian People's Republic was formed.