Why it's the capital
According to Erik's Chronicle, Birger Jarl founded the town to protect Sweden from attacks by sea. By 1252, when its name was first written down, iron from the Bergslagen mines had made it an important trading place, and in 1634 it became the official capital.