almost 500 years, Lucca remained an independent republic. There were many minor provinces in the region between southern Liguria and northern Tuscany dominated by the Malaspina; Tuscany in this time was a part of feudal Europe. Dante’s Divine Comedy includes many references to the great feudal families who had huge jurisdictions with administrative and judicial rights. Dante spent some of his exile in Lucca. In 1273 and again in 1277, Lucca was ruled by a Guelph capitano del popolo (captain of the people) named Luchetto Gattilusio. In 1314, internal discord allowed Uguccione della Faggiuola of Pisa to make himself lord of Lucca. The Lucchesi expelled him two years later, and handed over the city to another condottiero, Castruccio Castracani, under whose rule it became a leading state in central Italy. Lucca rivalled Florence until Castracani's death in 1328. On 22 and 23 September 1325, in the battle of Altopascio, Castracani defeated Florence's Guelphs. For this he was nominated by Louis IV the Bavarian to become duke of Lucca. Castracani's tomb is in the church of San Francesco. His biography is Machiavelli's third famous book on political rule. Occupied by the troops of Louis of Bavaria, the city was sold to a rich Genoese, Gherardino Spinola, then seized by John, king of Bohemia. Pawned to the Rossi of Parma, by them it was ceded to Mastino II della Scala of Verona, sold to the Florentines, surrendered to the Pisans, and then nominally liberated by the emperor Charles IV and governed by his vicar. In 1408, Lucca hosted a convocation organized by Pope Gregory XII with his cardinals intended to end the schism in the papacy. Lucca managed, at first as a democracy, and after 1628 as an oligarchy, to maintain its independence alongside of Venice and Genoa, and painted the word Libertas on its banner until the French Revolution in 1789. Early modern period Lucca had been the second largest Italian city state (after Venice) with a republican constitution ("comune") to remain independent over the centuries. Between 1799 and 1800 it was contended by the French and Austrian armies. Finally the French prevailed and granted a democratic constitution in the 1801. However, already in 1805 the Republic of Lucca was converted into a monarchy by Napoleon, who installed his sister Elisa Bonaparte Baciocchi as "Princess of Lucca". From 1815 to 1847 it was a Bourbon-Parma duchy. The only reigning dukes of