A Hanseatic harbour town
Tallinn grew up in the 13th century as a trading town on the Baltic, then known as Reval. In 1248 the Danish king granted it Lübeck Rights, which placed it in the same legal world as the German merchant towns and opened the door to the Hanseatic League.
The League made the town rich. A staple right won in 1346 meant goods moving between Novgorod and the West had to pass through local merchants, and that trade paid for the gabled houses, guild halls and churches that still shape the skyline. St Olaf's Church was for a time the tallest building in the world, its spire a marker for ships well out at sea.
From the start the town had two halves. Toompea, the upper town on the limestone hill, belonged to the bishops and the nobility. The lower town below it belonged to merchants and craftsmen. The two were not joined under one administration until the 19th century. The wall and towers that once enclosed them are among the best preserved in Northern Europe.