 The red panelled log houses west of the main building are believed to date back to the 1720s, while the stables carrying four sandstone vessels were designed by Carl Hårleman (1700-1753) under Frederick I (1676-1751) in the 1730s, thereafter rebuilt into barracks in the 1790s.In 1766, Karlberg was made a wedding gift to crown prince) Gustav (1746-1792) and Sophia Magdalena (1743-1813).In the early 1790s Gustav had plans to found a war academy at the Ulriksdal Palace.