kungshuset, the "king's house", is a building in lund in sweden, built by the danish king frederick ii between 1578 and 1584 and originally intended as the residence for the bishop of lund. after the secession of the scanian lands to sweden at the treaty of roskilde 1658 lund university was founded in 1666 to enhance the swedification of the danish provinces. king charles xi of sweden donated the building to the university in 1688 to serve as its main building and library. until around 1800 the entire university was contained in kungshuset, which as well as the library contained a theatre for the demonstration of anatomical dissection. the building was used as an observatory by, amongst others, the university's first astronomer, anders spole.