Built in the 13th century in the grounds of an older castle with a defensive wall, reinforced in the 15th century with five bastions, which were converted into chapels in the 18th century.