Bernstorff Palace (Danish: Bernstorff Slot) in Gentofte, Copenhagen, Denmark, was built in the middle of the 18th century for Foreign Minister Johann Hartwig Ernst von Bernstorff. It remained in the possession of the Bernstorff family until 1812. In 1842, it was bought by Christian VIII. For many years, it was used as a summer residence by Christian IX until his death in 1906.