 When Charles XII died in 1718 his coffin was taken to Karlberg before being interred in the church Riddarholmskyrkan.While the Three Crowns Castle was being rebuilt in the early 1690s, and following the disastrous fire which destroyed it in 1697, the royal family chose Karlberg as their temporary home.The entire court resided at Karlberg until 1754 when the present palace was finally completed.