Throughout its history, the castle has fulfilled a double function: defensive-religious function, for example, when it was in the hands of the Order of Calatrava, and residential function when it was, for example, in the hands of Don Ruy Gómez de Silva and of his wife, the princess of Eboli.