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.