Lietava Castle was built after 1241, most likely as an administrative and military centre. In the early 14th century, it is mentioned with Máté Csák III, one of the powerful magnates in the Kingdom of Hungary. The castle changed hands until the 16th century when the Thurzó family gained it. It was reconstructed and fortified, and given its own military garrison. After the death of Imre Thurzó in 1621, it was divided between his heirs. After the ownership disputes in 1641, they lost interest in it. The castle report in 1698 said that the castle was uninhabited and there was only an archive, which was moved to the Orava Castle in the 1760s. After that, the castle was abandoned and not used any more.
References:Rosenborg Palace was built in the period 1606-34 as Christian IV’s summerhouse just outside the ramparts of Copenhagen. Christian IV was very fond of the palace and often stayed at the castle when he resided in Copenhagen, and it was here that he died in 1648. After his death, the palace passed to his son King Frederik III, who together with his queen, Sophie Amalie, carried out several types of modernisation.
The last king who used the place as a residence was Frederik IV, and around 1720, Rosenborg was abandoned in favor of Frederiksborg Palace.Through the 1700s, considerable art treasures were collected at Rosenborg Castle, among other things items from the estates of deceased royalty and from Christiansborg after the fire there in 1794.
Soon the idea of a museum arose, and that was realised in 1833, which is The Royal Danish Collection’s official year of establishment.