The castle was most probably built by the Sture family during the late 15th and early 16th century, was burnt to the ground by Russian troops in 1719 and rebuilt in its present shape by architect Carl Hårleman.
The foundations of the presently visible building, including the basements, date from a castle that was erected on the cliff most probably at the end of the 15th century, when the land was owned by Nils Bosson Sture.
[2] The preceding farmstead was by 1260 in the possession of a landowner called Karl Ulfsson, who joined the Teutonic Order in a crusade against non-Christians in the present-day Baltic states.
Little is known of the fate of the farmstead until the 15th century, when it is known to have been in possession of one Erengisle Nilsson (died 1469); his widow sold the land to Nils Bosson Sture who most probably began construction of the castle.
[4] The medieval castle consisted of two stone buildings, connected with walls reinforced with at least two towers, in a way that created an enclosed space.
[1] During the second half of the 17th century, the Swedish government considered buying the castle in order to strengthen the defence of the country.