The construction of the castle began in 1290 by King Haakon V. The castle has successfully resisted all attacks, especially Swedish attacks, for many years. In the early 17th century, it was modernized and renovated by King Christian IV and took the appearance of a Renaissance castle.