Estonia (Estonian: Eesti [ˈeːsʲti] (listen)), officially the Republic of Estonia (Estonian: Eesti Vabariik), is a country in Northern Europe. It is bordered to the north by the Gulf of Finland with Finland on the other side, to the west by the Baltic Sea with Sweden to the west (Scandinavia to the far west and north), to the south by Latvia (343 km), and to the east by Lake Peipus and Russia (338.6 km). The territory of Estonia consists of a mainland and 2,222 islands in the Baltic Sea, covering a total area of 45,227 km2 (17,462 sq mi), water 2,839 km2 (1,096 sq mi), land area 42,388 km2 (16,366 sq mi), and is influenced by a humid continental climate. The official language of the country, Estonian, is the second most spoken Finnic language.
The territory of Estonia has been inhabited since at least 9,000 B.C. Ancient Estonians were some of the last European pagans to be Christianized, following the Livonian Crusade in the 13th century. After centuries of successive rule by Germans, Danes, Swedes, Poles and Russians, a distinct Estonian national identity began to emerge in the 19th and early 20th centuries. This culminated in independence from Soviet Russia in 1920 after a brief War of Independence at the end of World War I. Initially democratic, Estonia was governed by authoritarian rule since 1934 during the Era of Silence and the Great Depression. During World War II (1939–1945), Estonia was repeatedly contested and occupied by the Soviet Union and Germany, ultimately being incorporated into the former as the Estonian Soviet Socialist Republic. After the loss of its de facto independence, Estonia's de jure state continuity was preserved by the Estonian government-in-exile, which was recognized by much of the Western World throughout the Cold War (1945–1991). In 1987 the peaceful Singing Revolution began against Soviet rule, resulting in the restoration of de facto independence on 20 August 1991.