In the 13th century the town suffered much from the ravages of the Albigensian war and from the Inquisition , but by 1317 it had recovered sufficiently to be chosen by John XXII as the head of a diocese of which the basilica of St Théodard became the cathedral .
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 .