The origins of the Castillo de la Yedra could be Muslims, possibly from the Almohad era. During the 11th and 12th centuries, the first fortress was built, but the current appearance was built by Christians during the 13th and 14th centuries and during the papacy of don Pedro Tenorio. The alcázar was built by the archbishops of Toledo at the end of the 14th century. There is a keep and a small parade ground that surround the alcazar.
Its construction was designed exclusively for military use as a palace of a feudal lord or small court of medieval monarch. That is why its architecture is sober, although compensated by the beauty of the topography of its location and the surrounding landscape.
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.