it is said that he undertook a pilgrimage to the Holy Land. He actually got as far as Paris, where he resumed his long-standing plan of studying Theology. During this time he became a friend of King Louis IX. Visconti left Liège in 1267 for Paris at the behest of Pope Clement IV who sent him to England to assist Cardinal Ottobono Fieschi, who had been appointed Papal Legate in England in 1265, to support King Henry III in the rebellion of the barons, led by Simon de Montfort. It was during this assignment that Teobaldo became friends with Prince Edward of England (the future Edward I), with whom he went on Crusade. Cardinal Fieschi returned to Viterbo, and participated in the conclave of 1268-1271. Edward took the cross on 24 June 1268, followed Louis IX to Tunisia, and finally reached Acre on 9 May 1271. Papal election Visconti was elected to succeed Pope Clement IV on 1 September 1271 after the papal chair had been vacant for two years and nine months, due to divisions among the cardinals. The College of Cardinals, meeting in Viterbo where Pope Clement IV (1265-1268) had died, was equally divided between the French and Italian cardinals. The French wanted a pope from their own country, influenced by Charles of Anjou, the younger brother of King Louis IX of France, who had been invested with the throne of Sicily by Pope Clement IV (1265-1268). Charles had also successfully intrigued to have himself elected Senator of Rome, and he repeatedly intervened in the political affairs of the entire Italian peninsula. He had entered Rome on 23 May 1265 where he was made Senator and was proclaimed king of Sicily. On 6 January 1266, he was crowned in St. Peter's Basilica by Cardinals Riccardo Annibaldi, Raoul de Grosparmy, Ancher Pantaleoni, Matteo Orsini, and Goffredo da Alatri, with permission of Pope Clement IV, who did not dare to approach Rome himself due to the hostility of the Ghibelline government toward him. The deadlock was not even broken when the citizens of Viterbo locked up the cardinals in the Episcopal palace where they were meeting, and finally tearing off part of the roof of the building. Finally, in August 1271, the Cardinals decided to appoint a committee, three of their number from each side, to negotiate a settlement (Election by Compromise). When the six could not agree, however, on