Built in the 18th century during the reign of King Frederick the Great, and modernized in the 19th century