The castle, whose foundations date back to the early tenth century, was a strong fortress that withstood the repeated attacks of Simon de Montfort IV between 1211 and 1217, during the Albigensian Crusade.