and which was then already populated. The new seat had also attracted people from Forum Flaminii (now San Giovanni Profiamma), a neighbouring city and former bishopric that had been destroyed by the Lombards under Liutprand but remains a Latin Catholic titular see. Foligno recovered and continued to grow, ultimately gaining the status of free city in 1165 thanks to emperor Frederick Barbarossa. Siding first with the Guelph party, after its occupation by Corrado Guiscardo, a captain of emperor Frederick II, it became Ghibelline as a fierce rival of the Guelph Perugia. It changed hands often during the wars of the 13th century, until 1305 when it was seized by the powerful Guelph family of the Trinci, acting as semi-independent deputies of the Holy See. During this period Foligno flourished and reached the height of its wealth and, especially in the 15th century, was a centre of art thanks to the family's patronage of arts (exemplified by the Palazzo Trinci). It controlled a large territory, including Assisi, Bevagna, Giano, Montefalco, Nocera and Spello. When Corrado Trinci turned against the Papal authority, Pope Eugene IV sent a force against Foligno in 1439, led by Cardinal Giovanni Vitelleschi. The inhabitants opened their gates and Corrado was beheaded in 1441 in the castle of Soriano. Henceforth Foligno belonged to the Papal States until 1860, with the exception of the Napoleonic era, when it was part of the Roman Republic (1799) then of the French Empire (1809‑1814). The citizens took an active part in the Risorgimento wars, and on 14 September 1860 Savoy troops took the city and annexed it to the Kingdom of Italy. It has suffered from several major earthquakes, among which those of 1832 and 1997. Main sights Main attractions of the city include: Palazzo Comunale, built in the 13th century and rebuilt various times during the 16th and the 17th centuries. Its present Neo-Classical façade was carried out between 1835 and 1838. The bell tower is still the original from the 13th century. Adjoining the Palazzo Comunale is the Palazzo Orfini, built in Renaissance style, where the first printing shop opened by Emiliano Orfini around 1470. An inscription on the current façade (built in 1507) commemorates the printing in April 1472 of Dante's Divine Comedy here by Johann Neumeister, a former pupil of Gutenberg. This was the first book printed in the Italian language. Cathedral of San Feliciano or Duomo (1133–1201),