Cuéllar Castle is conserved in good condition, and it has been built in different architectural styles between the 13th and 18th century. Much of the castle in the Gothic and Renaissance styles. The military building was extended and transformed in the 16th century, turning it into the palace of the Duke of Alburquerque. Among its historical owners, stands out Álvaro de Luna and Beltrán de la Cueva, as well as the successive Dukes of Alburquerque.
The Dukes of Alburquerque lived in this castle for centuries until they moved to Madrid to be close to the court. Thereafter their use of the castle was as leisure and holidays palace, abandoning the building slowly. At the late 19th century the castle was almost completely abandoned, and was victim of robberies. In 1938 was a political prison was settled within the castle, and after was established also a sanatorium for prisoners affected by tuberculosis. It was used as prison till 1966.
In 1972, the Department of Fine Arts carried out an intensive restoration, and made it the home of a Vocational Education school, which continues to this day.
References:The Basilica of Santa Maria in Trastevere is one of the oldest churches of Rome. The basic floor plan and wall structure of the church date back to the 340s, and much of the structure to 1140-43. The first sanctuary was built in 221 and 227 by Pope Callixtus I and later completed by Pope Julius I.
The inscription on the episcopal throne states that this is the first church in Rome dedicated to Mary, mother of Jesus, although some claim that privilege belongs to the Basilica di Santa Maria Maggiore. A Christian house-church was founded here about 220 by Pope Saint Callixtus I (217-222) on the site of the Taberna meritoria, a refuge for retired soldiers. The area was made available for Christian use by Emperor Alexander Severus when he settled a dispute between the Christians and tavern-keepers.
The church underwent two restorations in the fifth and eighth centuries and in 1140-43 it was re-erected on its old foundations under Pope Innocent II.