Bedmar Castle was built in the 15h century by the knighthood of Santiago against the Nasrid Kingdom of Granada.