In 1325 , in the battle of Altopascio , Lucca soldiers defeated Florence 's Guelphs with the help of Castracani , a leader of the city in time of war . On 22 and 23 September 1325 , in the battle of Altopascio , Castracani defeated Florence 's Guelphs .