From the 11th century onward, the popes maintained an aggressive political presence in the papal territory which occupied central Italy. Together with his court, the pope moved from palace to palace in the manner of his European secular counterparts. Several central Italian cities hosted the pope and his retinue during the years of wandering, housing them in the bishop's palace. Outside Rome, only Orvieto and Viterbo (and eventually Avignon) had papal palaces. Pope Adrian IV (1154–59) was the first pope to spend significant time in Orvieto. His successor, Pope Innocent III (1198–1216), was a militant opponent of the Cathar heresy, which had infiltrated the city, and took measures to eradicate that heresy. In 1227, Pope Gregory IX confirmed the Dominican "studium generale" in Orvieto, a school of theology, and one of the first in Europe. Pope Urban IV (1261–64), a Frenchman who was crowned in the Dominican church in Viterbo and who spent most of his papacy in Orvieto, also left important legacies in the city. In 1263, he began a papal palace, perhaps the first outside Rome, and consecrated the new Dominican church in Orvieto. Pope Nicholas IV (1288–92) chose Orvieto over his hometown of Rome as seat of the Curia in 1291–92, establishing the meeting of the Curia in Orvieto as a tradition. He was rewarded by the Orvietans by being elected Podestà and Capitano del Popolo, the first pope to hold civic offices in the city.