the former royal palace, the buda castle -as part of the castle district- has been part of budapest's world heritage sites since 1987. the gothic-style royal palace was built in the 1300s and lasted until the end of the 1400s. due to the turkish occupation from 1541 to 1686, very serious damage was done to both the castle and the buildings of the castle district. in the building of the palace, the national széchényi library has been located in the back, decorated with art nouveau elements, and the hungarian national gallery and the budapest history museum are located in the palace.