Stockholm's location appears in Norse sagas as Agnafit, and in Heimskringla in connection with the legendary king Agne. The earliest written mention of the name Stockholm dates from 1252, by which time the mines in Bergslagen made it an important site in the iron trade. The first part of the name (stock) means log in Swedish, although it may also be connected to an old German word (Stock) meaning fortification. The second part of the name (holm) means islet, and is thought to refer to the islet Helgeandsholmen in central Stockholm. The city is said to have been founded by Birger Jarl to protect Sweden from a sea invasion by foreign navies and to stop the pillage of towns such as Sigtuna on Lake M�laren.
Stockholm's core of the present Old Town (Gamla Stan) was built on the central island next to Helgeandsholmen from the mid-13th century onward. The city originally rose to prominence as a result of the Baltic trade of the Hanseatic League. Stockholm developed strong economic and cultural linkages with L�beck, Hamburg, Gda?sk, Visby, Reval, and Riga during this time. Between 1296 and 1478 Stockholm's City Council was made up of 24 members, half of whom were selected from the town's German-speaking burghers.
The strategic and economic importance of the city made Stockholm an important factor in relations between the Danish Kingsof the Kalmar Union and the national independence movement in the 15th century. The Danish King Christian II was able to enter the city in 1520. On 8 November 1520 a massacre of opposition figures called the Stockholm Bloodbath took place and set off further uprisings that eventually led to the breakup of the Kalmar Union. With the accession of Gustav Vasa in 1523 and the establishment of a royal power, the population of Stockholm began to grow, reaching 10,000 by 1600.
Panorama over Stockholm around 1868 as seen from a hot air balloon
Kungstr�dg�rden in Stockholm around 1890�1900
The 17th century saw