 After the unsuccessful invasion of 1715, James lived in Papal territory, first at Avignon (April 1716 – February 1717), then at Pesaro (1717) and Urbino (July 1717 – November 1718).Pope Clement XI offered James the Palazzo del Re in Rome as his residence, which he accepted.Pope Innocent XIII, like his predecessor, showed much support.