 The Inquisition left the castle in 1626, due to the continued deterioration of its walls due to heavy flooding.After that, it was loaned to the Count-Duke of Olivares, in which he dealt with its repairs and care, and the surveillance of goods carried to its doorstep.Later given to the city, City Hall demolished the castle in the 19th century.