Estonia, officially the Republic of Estonia, is a country in the Baltic Region of Northern Europe. It is bordered to the north by the Gulf of Finland, to the west by the Baltic Sea, to the south by Latvia (343 km), and to the east by the Russian Federation (338.6 km). The territory of Estonia covers 45,227 km2 (17,462 sq mi) and is influenced by a temperate seasonal climate. The Estonians are a Finnic people, and the official Estonian language is closely related to Finnish. Estonia is a democratic parliamentary republic and is divided into fifteen counties. With a population of only 1.34 million, Estonia is one of the least-populous members of the European Union.
The settlement of modern day Estonia began around 8500 BC, immediately after the Ice Age. Over the centuries, the Estonians were subjected to Danish, Teutonic, Swedish and Russian rule. Foreign rule in Estonia began in 1227. In the aftermath of the Livonian Crusade the area was conquered by Danes and Germans. From 1228–1562, parts or most of Estonia were incorporated into a crusader state Terra Mariana, that became part of the Ordensstaat, and after its decline was formed the Livonian Confederation. During the era economic activities centered around the Hanseatic League. In the 1500s Estonia passed to Swedish rule, under which it remained until 1710/1721, when it was ceded to the Russian Empire.