in the 13th century the town suffered much during the albigensian crusade and from the inquisition, but by 1317 it had recovered sufficiently to be chosen by the pope john xxii as the head of a diocese of which the basilica of st théodard became the cathedral.