The city of Cahors was visited by Pope Callistus II (1119–24) in 1119, where, on 26 August 1119 he dedicated the high altar of the Cathedral. It was also the birthplace of Jacques d'Euse (1244–1334), who became pope in 1316 under the title of John XXII. The tower of his palace is still to be seen in Cahors. He provided a charter for a university there, dated 7 June 1331, its law faculty being so celebrated as to boast at times of 1200 pupils. There were three colleges at Cahors: Pélegry (1358), Rodez (1371), and San Michel (1473). Fénelon studied at this institution, which, in 1751, was dissolved as a separate institution and annexed to the University of Toulouse. In the sixteenth century the Diocese of Cahors was severely tried by religious wars, and the Collège de Pélegry, which provided for a certain number of university students without cost, became noted for the way in which these young men defended Cahors against the Huguenots. The War of the Spanish Succession in its turn took a heavy toll on the good order of the university. In 1707 King Louis XIV found it necessary to reform the Collège de Pélegry and provide it with new statutes.