The history of Stockholm, capital of Sweden, for many centuries coincided with the development of what is today known as Gamla stan, the Stockholm Old Town.

Origins

The name 'Stockholm' easily splits into two distinct parts – Stock-holm, "Log-islet", but as no serious explanation to the name has been produced, various myths and legends have attempted to fill in the gap. According to a 17th-century myth the population at the viking settlement Birka decided to found a new settlement, and to determine its location had a log bound with gold drifting in Lake Mälaren. It landed on present day Riddarholmen where today the Tower of Birger Jarl stands, a building, as a consequence, still often erroneously mentioned as the oldest building in Stockholm.Stockholms gatunamn, "Namnet Stockholm", pp 30–32. The most established explanation for the name are logs driven into the strait passing north of today's old town which dendrochronological examinations in the late 1970s dated to around 1000. While no solid proofs exists, it is often assumed the Three Crown Castle, which preceded the present Stockholm Palace, originated from these wooden structures, and that the medieval city quickly expanded around it in the mid 13th century.Hall, Huvudstad i omvandling, pp 23–25 In a wider historical context, Stockholm can be thought of as the capital of the Lake Mälaren Region, and as such can trace its origin back to at least two much older cities: Birka (c. 790–975) and Sigtuna, which still exists but dominated the region c. 1000–1240 — a capital which has simply been relocated at a number of occasions.Hall, pp 13–16

Middle Ages

The name Stockholm first appears in historical records in letters written by Birger Jarl and King Valdemar dated 1252. However, the two letters give no information about the appearance of the city and events during the following decades remain diffuse. While the absence of a perpendicular city plan in medieval Stockholm seems to indicate a spontaneous growth, it is known German merchants invited by Birger Jarl played an important role in the foundation of the city.Hall, p 43Hall, p 46 Under any circumstance, during the end of the 13th century, Stockholm quickly grew to become not only the largest city in Sweden, but also the de facto Swedish political centre and royal residence. Thus, from its foundation, Stockholm has been the largest and most important Swedish city, inseparable from and dependent on the Swedish government.Hall, p 47 However, as late as the 16th century, reigns of Kings Eric XIV and John III, whose Swedish government often travelled with them elsewhere (see below), the city was still not what could be called a national capital in modern terms.Erik Pettersson in Den skoningslöse, en biografi över Karl IX Natur & Kultur 2008 p. 46

During the Kalmar Union (1397–1523), controlling Stockholm was crucial to anyone aspiring to control the kingdom, and the city was consequently repeatedly besieged by various Swedish-Danish factions. In 1452, a Danish fleet made a failed attack on the city. In 1471, Sten Sture the Elder defeated Christian I of Denmark at the Battle of Brunkeberg only to lose the city to Hans of Denmark in 1497. Sten Sture managed to seize power again in 1501 which resulted in a Danish blockade lasting 1502–1509 and eventually a short peace. Hans' son Christian II of Denmark finally conquered it in 1520 and had many leading nobles and burghers of Stockholm beheaded in the so-called Stockholm Bloodbath. When King Gustav Vasa finally besieged and conquered the city three years later, an event which ended the Kalmar Union and the Swedish Middle Ages, he noted every second building in the city was abandoned.Nilsson, Staden på vattnet 1, pp 59–63

By the end of the 15th century, the population in Stockholm can be estimated to 5,000–7,000 people, which made it a relatively small town compared to several other contemporary European cities. On the other hand, it was far larger than any other city in Sweden. Many of its inhabitants were Germans and Finns, with the former forming a political and economic elite in the city.Nilsson, pp 24–27

During the Middle Ages, export was administered mostly by German merchants living by the squares Kornhamnstorg ("Grain Harbour Square") and Järntorget ("Iron Square") on the southern corner of the city. Regional peasantry supplied the city with food and raw materials, while the craftsmen in the city produced handicrafts, most of whom lived by the central square Stortorget or by the oldest two streets in Stockholm, the names of which still reflects their trade: Köpmangatan ("Merchant Street") and Skomakargatan ("Shoemaker Street") in the central part of the city. Other groups lived by the eastern or western thoroughfares, Västerlånggatan and Österlånggatan.Nilsson, pp 43–47

Early Vasa era

After Gustav Vasa's siege of Stockholm, he restored the privileges of the city which was beneficiary to the burghers of the city. The king maintained his control over the city by controlling the elections of aldermen and magistrates. By the mid-century, the numbers of officials increased in order to make the management of the city more professional and to ensure the state-controlled trade. Stockholm thus lost much of the independence it had had during the Middle Ages and became politically and financially bound to the state.Nilsson, pp 64–66 During the reign of his sons (1561–1611), the city council remained escorted by a royal representative and both magistrates and aldermen were appointed by the king.Nilsson, pp 80–82

Gustav Vasa invited the clergyman Olaus Petri (1493–1552) to become the city secretary of Stockholm. With the two side by side, the new ideas of the Protestant Reformation could be quickly implemented, and sermons in the church were held in Swedish starting in 1525 and Latin was abolished in 1530. A consequence of this development was a need for separate churches for the numerous German and Finnish-speaking citizens and during the 1530 the still-existent German and Finnish parishes were created. The king was, however, not favourably disposed to older chapels and churches in the city, and he ordered churches and monasteries on the ridges surrounding the city to be demolished, together with the numerous charitable institutions.Nilsson, pp 66–68

Because Stockholm had a city wall, it was exempted from the tax paid by other Swedish cities. During the reign of Gustav Vasa the city's fortifications were reinforced and in the Stockholm Archipelago, Vaxholm was created to guard the inlet from the Baltic. While the medieval structure of Stockholm remained mostly unaltered during the 16th century, the city's social and economic importance grew to the extent that no king could permit the city to determine its own faith – the most important export item being bar iron and the most important destination Lübeck.Nilsson, pp 68–72 During the reign of Vasa's sons, trade led many Swedes to settle in the city, but the trade and the capital needed to control it was largely in the hands of the king and German merchants from Lübeck and Danzig. Throughout the era, Sweden could hardly claim the level of government and bureaucracy requisite to a capital in the modern sense, but Stockholm was the kingdom's strongest bastion and the king's main residence. As Eric XIV's pretensions were on par with those of Renaissance princes on the continent, he afforded himself the largest court his finances could possibly support, and the royal castle was thus the biggest employer in the city.

Around 1560–80, most of the citizens, some 8.000 people, still lived on Stadsholmen. This central island was at this time densely settled and the city was now expanding on the ridges surrounding the city. Stockholm had no private palaces at this time and the only larger buildings were the castle, the church, and the former Greyfriars monastery on Riddarholmen. The surrounding ridges, unable to boast a single timber framed building, were mostly used for activities that either required a lot of space, produced odours, or could cause fire. Even though some burghers had secondary residences outside the city, the population living on the ridges, perhaps a quarter of the city's population, were mostly poor, including the royal personnel occupying the ridges north of the city.

Great Power era

Following the Thirty Years' War (1618–1648), Sweden was determined never to repeat the embarrassment experienced following the death of Gustavus II Adolphus (1594–1632) when Stockholm, still medieval in character, caused hesitation on whether to invite foreign statesmen for fear the lamentable appearance might undermine the nation's authority. Therefore, Stockholm saw many ambitious city plans during the era, of which those for the ridges surrounding today's old town still stands. In accordance to the mercantilism of the era, trade and industry was concentrated to cities where it was easier to control, and Stockholm was of central importance. In a letter in 1636, Chancellor Axel Oxenstierna (1583–1654) wrote that evolving the Swedish capital was a prerequisite for the nation's power and strength and that this would bring all the other cities on their feet. Increased state intervention on city level was not unique to Sweden at this time, but it was probably more prominent in the case of Stockholm than anywhere else in Europe. To this end, the government of the city was reformed and the former volunteered magistrates gradually replaced by professionals with a theoretical education.Hall, pp 53–58

Population and city plans

The process of reshaping Stockholm was initiated by a major fire in 1625 which destroyed the south-western part of today's old town. As a result, two new boulevard-like streets were created — Stora Nygatan and Lilla Nygatan — and along the eastern waterfront the medieval wall was replaced by a row of prestigious palaces — Skeppsbron.Hall, pp 60–63.

For the ridges surrounding the city – Norrmalm, Östermalm, Kungsholmen, and Södermalm – new city plans were worked out to create wide and straight artery streets. The project was implemented so thoroughly, in several parts of the city no traces exist of the previous medieval structures. Many of the streets from this era are still extant, and some of those proposed have been realised with some minor modifications.Hall, pp 63–70,Hall, pp 70–74.Hall, pp 74–75.

The population grew from less than 10,000 in the early 17th century to more than 50,000 in the mid-1670s.

The city's income rose from 18,595 daler in 1635–36 to 81,480 daler in 1644. In 1642, approximately 60 per cent of that sum was spent on construction works.

Law enforcement and the poor The growing city of Stockholm also had a greater demand for law enforcement. In 1624, the first prison in the city, called "Tukthuset," was established. During their time in prison, the inmates were tasked with creating textiles. To reduce the crime rate and maintain order, a mounted nighttime police force was created to prevent crimes and escort people to their homes.

In 1633, the "Great Orphanage" (the exact name was "Stora barnhuset") was established in Norrmalm. The children would work and be taught a profession while having a place to sleep and eat.

Beggars were prohibited in Stockholm in 1642, including those who were legally allowed to beg. This marked a significant change from medieval times when poverty was often regarded as having religious worth; now, beggars were seen as lazy. The "right poor"—for example, those who had been injured and were therefore unable to work—would be housed in care houses called "fattighus," while the "wrong poor" would be placed in workhouses. Despite this, a large number of mutilated soldiers and other impoverished individuals moved to the city in hopes of a better future.

Trade