One of Europe's best-preserved medieval cities — owned by almost everyone except Estonians, until suddenly it was.

The city everyone wanted

Walk up through the Old Town to Toompea — the limestone hill that rises above the lower city and has been a fortified position since the Bronze Age — and you'll find flags of multiple nations carved into the walls, marked in plaques, embedded in the story the city tells about itself. Danish, German, Swedish, Russian: Tallinn has spent most of its history as someone else's prize possession. The Danes built the first stone castle here in the thirteenth century. The Teutonic Knights took it from them. The Swedes took it from the Knights. The Russians took it from the Swedes. And through all of this, the Estonians — the people whose language and culture the city sat in the middle of — governed almost nothing and owned almost nothing in their own capital city for seven hundred years.

This history is not merely academic. It explains the Old Town you're about to walk through: the reason it looks so perfectly, almost improbably medieval is partly that the various ruling powers that passed through didn't much alter what was already there. Tallinn wasn't bombed flat in the Second World War the way Warsaw or Rotterdam was. The Soviets, who took it again after Germany briefly occupied it, preserved the old center for tourism. The result is a town hall square, a limestone hill with a castle, a cobblestoned lower town enclosed in medieval walls — not a replica, not a reconstruction, but the actual thing, aging in real time.

What the Danes left behind

The Danes arrived in 1219, led by King Valdemar II, and according to Estonian tradition and later myth, they founded the city after a miraculous event: the Dannebrog — the Danish flag, a white cross on a red field — fell from the sky during battle, at which point the Danes stopped losing and started winning. This is the founding legend of both Tallinn and, in Danish tradition, the entire concept of the national flag. Whether or not you believe it, it's the story the city started with: foreign conquest rationalized as divine intervention.

The name Tallinn comes from the Estonian Taani linn: Danish town. The Estonians named their own capital after the people who had taken it. This is the kind of linguistic fact that illuminates an entire history: you are in a place where the indigenous population was subordinate enough that the city absorbed the name of its conquerors into the language of the conquered. When Estonia declared independence in 1918, the first time in its history, the capital was still officially called Reval — its German name. Tallinn became the official name in 1918, and it says something about the compressed speed of the twentieth century that the capital's first Estonian name and its eventual return to Soviet control happened within a generation.

The German merchants who built the lower city

While the Danes and later the Teutonic Knights held Toompea Hill, the lower city — the walled merchant district called the lower town — was built and run almost entirely by Baltic Germans: members of the Hanseatic League, the medieval trading network that dominated northern European commerce from the twelfth to the seventeenth century. At its height, the Hansa connected trading cities from London to Novgorod, and Tallinn (then Reval) was one of its most important nodes, sitting at the junction of east-west and north-south Baltic trade routes.

Town Hall Square, where you'll spend part of your first day, is the heart of what these merchants built. The Gothic town hall on the north side of the square dates from the early fifteenth century and is one of the best-preserved secular Gothic buildings in northern Europe. The old pharmacy on the southeast corner — Raeapteek — has been operating continuously since at least 1422, which makes it one of the oldest pharmacies in the world still in its original location. The houses that line the square were built for rich merchants and they still look like rich merchants' houses: tall, narrow, with high gabled facades designed to maximize floor space within the constrained medieval lot widths.

The long street running north from the square to the Great Coast Gate — Pikk, meaning Long — was the merchant district's spine. Walk it slowly. The guild halls, the merchant houses, the church towers are still in their original positions, operating in different capacities now but occupying the same footprint they did five hundred years ago.

The Hanseatic period ended gradually, as competing powers disrupted the trade routes and newer trading companies based in the Atlantic nations overtook the old Baltic networks. By the time Sweden took control of Tallinn in 1561, the golden age of Hanseatic commerce was already over. What it left behind was an urban fabric so dense and well-built that every subsequent occupying power found it easier to use than replace.

Russia, then Germany, then Russia again

Peter the Great took Tallinn from Sweden in 1710, during the Great Northern War, and the city remained part of the Russian Empire for the next two hundred years. The Russians left the medieval structure of the city largely intact but built a new neighborhood to the west — the area around the Alexander Nevsky Cathedral on Toompea Hill. The cathedral, a Russian Orthodox church completed in 1900 in a deliberate assertion of imperial power over this Lutheran city, is one of the most contentious buildings in Tallinn: some Estonians have periodically proposed demolishing it as a symbol of occupation; others have successfully argued for preservation as history. It sits at the top of Toompea, impossible to miss, the onion domes directly facing the Estonian parliament building across a small courtyard.

The twentieth century compressed centuries of political change into decades. Estonia declared independence in 1918, was occupied by the Soviet Union in 1940 under the Molotov–Ribbentrop Pact, then by Germany in 1941, then by the Soviet Union again in 1944. During the German occupation, Tallinn's Jewish community — about a thousand people — was almost entirely murdered. During the Soviet period, Russian-speaking workers were brought in to staff the industrial enterprises the Soviets built, creating a demographic split that still shapes Estonian politics: roughly a quarter of Estonia's current population is ethnically Russian, most of them descendants of Soviet-era migrants.

The Soviet presence is visible in the neighborhoods outside the Old Town: the concrete apartment blocks in Lasnamäe and Mustamäe, built rapidly in the 1960s and 70s to house the influx of workers, are the physical evidence of what Soviet urbanization looked like at scale. They're not pretty, but they're honest — a different kind of history from the medieval walls, equally Tallinn's.

The singing revolution

In 1987 and 1988, as Gorbachev's glasnost policies loosened the restrictions on Soviet public life, something unexpected started happening in Estonia. People began gathering in large numbers to sing. Estonian song festivals — the laulupidu — had been held since 1869, even through the Soviet years, and the music carried layers of national feeling that the Soviet authorities had never fully managed to suppress. In 1988, three hundred thousand Estonians — roughly a quarter of the entire population — gathered at the Tallinn Song Festival grounds over five nights for an event that became known as the Singing Revolution. They sang songs that had been banned. They sang songs that were coded as national symbols. They held candles.

The Tallinn Song Festival grounds, in the Pirita neighborhood east of the city center, hold a hundred thousand people. Three hundred thousand came. People climbed trees to see.

The Baltic Way, on August 23, 1989 — the fiftieth anniversary of the Molotov–Ribbentrop Pact — brought two million people into a human chain that stretched six hundred and seventy-five kilometers from Tallinn through Riga to Vilnius. It was the largest political protest in Baltic history, and it was entirely peaceful. Estonia restored independence in 1991. The Soviet Union dissolved four months later. The Baltic countries were among the last to go in and among the first to get out.

The Vabamu Museum — the Museum of Occupations and Freedom, in a purpose-built space near the Old Town — is where to go to understand this history at depth. It's one of the better small history museums in Europe: well-paced, honest about the complexity of the occupation period, and built with the specific goal of documenting an experience that was recent enough that survivors were still alive when the museum opened.

What e-Estonia means and why it matters

When Estonia regained independence in 1991, it was starting from close to nothing in terms of modern digital infrastructure. The Soviet systems were incompatible with Western standards, the economy was in collapse, and the government had essentially no functioning bureaucratic apparatus of its own. The decision that came out of this crisis — to build the country's administrative infrastructure digitally from the start, rather than building paper systems and digitizing them later — turned out to be one of the most consequential policy choices of the 1990s.

Today Estonia has one of the most advanced digital governance systems in the world. Estonians vote online, file taxes online, sign contracts with digital signatures that are legally binding, access their medical records online, and interact with almost every government service through a unified digital identity system. The country allows non-residents to become e-residents — digital citizens without physical residency — and use Estonian digital infrastructure to run businesses, sign documents, and access the EU market. Over a hundred thousand people from more than a hundred and seventy countries have done this.

This is not an accident of national character. It's the specific outcome of a small country deciding that the only way to compete in a world where it had just spent fifty years being suppressed was to move faster than anyone expected. The startup culture in Tallinn — Skype was founded here, and the city has produced more tech unicorns per capita than almost any city its size — flows directly from the same source: a culture that was starting over and chose to start over digitally.

The thing to carry with you

Stand at the top of the Town Hall Tower and look out over the Old Town. The walls, the towers, the Gothic spires — almost everything you can see from up here is more than five hundred years old. Below you, tucked into apartments and repurposed guild halls and cafes that replaced the merchant houses, are a hundred thousand people living twenty-first century lives inside a medieval shell. Estonians are among the most digitally connected people on earth, living in a city that is among the most visually preserved in Europe.

That gap is not ironic. It's the result of everything Estonia has been through: the seven hundred years of foreign rule that kept the old city intact because no one powerful enough to change it cared about it, the fifty years of Soviet occupation that ended with a singing revolution, the thirty years since independence in which a small country decided it would be faster than its history had allowed it to be. The medieval walls are not in tension with the digital government. They're both expressions of the same thing: a place that survived by being useful, adaptable, and harder to erase than the powers that tried to erase it expected.

Once you see that, everything in Tallinn reads differently. The town hall square, the Alexander Nevsky Cathedral, the concrete towers of Lasnamäe visible on the eastern horizon, the startup offices in the restored warehouses by the harbor. It's the same city. It kept going.