The main buildings were built in the 1660s and 1670s by Gustaf Soop, after drawings by Nicodemus Tessin the Elder.