The medieval castle was rebuilt in the end of the 16th century by Duke Charles (later Charles IX of Sweden) into a renaissance palace. The palace burned down with the rest of the city in 1665.
Duke Charles, who later became Charles IX of Sweden, renovated the medieval castle into a Renaissance-style palace at the end of the 16th century. Both the palace and the city suffered extensive damage during a fire in 1665.