Mª Rosario Mondéjar ManzanaresBeltrán de la Cueva went from fearing a possible attack by Isabella to being well regarded at her court. He undoubtedly gained royal favour for having fought against the Portuguese defending the Queen's rights at the Battle of Toro on 1 March 1476, in the context of the War of the Castilian Succession. From that time until 1811, due to the abolition of the lordships, the town remained in the hands of the Ducal House, and the works begun by Beltrán de la Cueva were continued by the second, third and fourth dukes, converting the military fortress into a Renaissance palace, where they had their residence until the 17th century, when they moved with the Court to Madrid, where it became their summer residence and a place for family celebrations.