Tallinn is the capital and largest city of Estonia. Located on a bay in northern Estonia, on the shore of the Gulf of Finland of the Baltic Sea, it has a population of 452,563 as of 2026, making it the third most-populous city in the Baltics. As of 2024, the population of the Tallinn metropolitan area is estimated at 646,315. Tallinn is the main governmental, financial, industrial, and cultural centre of Estonia. It is located 187 kilometres (116 mi) northwest of the country's second largest city, Tartu, however, only 80 kilometres (50 mi) south of Helsinki, the capital city of Finland. It is also 320 kilometres (200 mi) west of Saint Petersburg, Russia, 300 kilometres (190 mi) north of Riga, Latvia, and 380 kilometres (240 mi) east of Stockholm, Sweden. From the 13th century until the first half of the 20th century, Tallinn was known in most of the world by variants of its other historical name, Reval.
Reval (Tallinn) received Lübeck city rights in 1248; however, the earliest evidence of human settlement in the area dates back almost 5,000 years. The medieval indigenous inhabitants of present-day Tallinn and northern Estonia were among the last "pagan" peoples in Europe to be Christianised during the papal-sanctioned Northern Crusades in the 13th century.
The first recorded claim to the area was made by Denmark after a successful raid in 1219 led by King Valdemar II, followed by a period of alternating Scandinavian and Teutonic rulers. Due to the strategic location by the sea, its port became a significant trade hub, especially in the 14th to 16th centuries, when Tallinn grew in importance as the northernmost member city of the Hanseatic League. Tallinn Old Town is one of the best-preserved medieval cities in Europe and is listed as a UNESCO World Heritage Site.
In 2012, Tallinn had the highest number of startup companies (per capita) among all capitals and larger cities in Europe. Tallinn is the birthplace of many international high-technology companies, including Bolt and Skype. The city is home to the headquarters of the European Union's IT agency and to the NATO Cyber Defence Centre of Excellence.
In 2007, Tallinn was listed among the top-10 digital cities in the world, and in 2022, Tallinn was listed among the top-10 "medium-sized European cities of the future".
The name Tallinn is Estonian. It has been widely considered a historical derivation of Taani-linna, meaning "Danish-castle" (Latin: Castrum Danorum), conceivably because the Danish invaders built the castle in place of the Estonian stronghold after the 1219 battle of Lyndanisse.
The Icelandic Njál's saga—composed after 1270, but describing events between 960 and 1020—mentions an event that occurred somewhere in the area of Tallinn and calls the place Rafala (probably a derivation of Revala, Rävala, or some other variant of the Estonian name of the adjacent medieval Estonian county). Soon after the Danish conquest in 1219, the town became known in the Scandinavian and German languages as Reval (Latin: Revalia). The etymology of Revala and derivatives in Estonian is unclear and hypotheses are numerous.
In international use, the English and German-language Reval as well as the Russian analog Revel (Ревель) were all gradually replaced by the Estonian name after the country became independent in 1918. At first, both Estonian forms, Tallinna and Tallinn, were used.
Henry of Livonia, in his chronicle (c. 1229), called the town with the name that is also known to have been used up to the 13th century by Scandinavians: Lindanisa (or Lyndanisse in Danish, Lindanäs in Swedish and Ledenets in Old East Slavic).
In 1154, a town called قلون (Qlwn or Quwri) was recorded in the description of the world on the world map (Tabula Rogeriana) commissioned by the Norman King Roger II of Sicily and compiled by Arab cartographer Muhammad al-Idrisi, who described it as "a small town like a large castle" among the towns of 'Astlanda'. It has been suggested that one possible transcription, 'Qlwn', may have denoted a predecessor of the modern city and may somehow be related to a toponym Kolyvan, which has been discovered from later East Slavic chronicles. However, a number of historians have considered connecting any of al-Idrisi's placenames with modern Tallinn erroneous, unfounded, or speculative.
The first archaeological traces of a small hunter-fisherman community's presence in what is now Tallinn's city centre are c. 5,000 years old. The comb ceramic pottery found on the site dates to about 3000 BCE and corded ware pottery to around 2500 BCE.
Around 1050 AD, a fortress was built in what is now central Tallinn, on the hill of Toompea.
As an important port on a major trade route between Novgorod and western Europe, it became a target for the expansion of the Teutonic Order and the Kingdom of Denmark during the period of Northern Crusades in the beginning of the 13th century when Roman Catholic Christianity was forcibly imposed on the local population. The King Valdemar II of Denmark conquered Tallinn and northern Estonia in 1219.
Tallinn, then known more widely as Reval, was granted Lübeck town rights by the king of Denmark in 1248. In 1285, Reval became the northernmost member of the Hanseatic League – a mercantile and military alliance of German-dominated cities in Northern Europe. The king of Denmark sold Reval along with other land possessions in north Estonia to the Teutonic Order in 1346. Reval was arguably the most significant medieval port in the Gulf of Finland. Reval enjoyed a strategic position at the crossroads of trade between the rest of western Europe and Novgorod and Muscovy in the east. The city, with a population of about 8,000, was very well fortified with city walls and 66 defence towers. The city wall has been described as an outstanding example of German Medieval fortification architecture.
A weather vane, the figure of an old warrior called Old Thomas, was put on top of the spire of the Tallinn Town Hall in 1530. Old Thomas later became a popular symbol of the city.
In the early years of the Protestant Reformation, the city converted to Lutheranism. In 1561, Reval (Tallinn) became a dominion of Sweden.
During the 1700–1721 Great Northern War, plague-stricken Tallinn along with Swedish Estonia and Livonia capitulated to Tsardom of Russia (Muscovy) in 1710, but the local self-government institutions (Magistracy of Reval and Estonian Knighthood) retained their cultural and economical autonomy within the Governorate of Estonia of the Russian Empire. The Magistracy of Reval was abolished in 1889. The 19th century brought industrialisation of the city and the port kept its importance.
On 24 February 1918, the Estonian Declaration of Independence was proclaimed in Tallinn. It was followed by German occupation until the end of World War I in November 1918, after which Tallinn became the capital of independent Estonia. During World War II, Estonia was first occupied by the Soviet army and annexed to the USSR in the summer of 1940, then occupied by Nazi Germany from 1941 to 1944. During the German occupation Tallinn suffered from many instances of aerial bombing by the Soviet air force. During the most devastating Soviet bombing raid on 9–10 March 1944, more than a thousand incendiary bombs were dropped on the city, which caused large-scale fires, as a result of which 757 people were killed (including 586 civilians) and 20,000 left without shelter. After the German retreat in September 1944, the city was re-occupied by the Soviet Union.