Pistoia stayed a Florentine city except for few years in the 14th century , when Castruccio Castracani captured it for Lucca . It was annexed to ( made a part of ) Florence in 1530 . Pistoia remained a Florentine holding except for a brief period in the 14th century , when Castruccio Castracani captured it for Lucca , and was officially annexed to Florence in 1530 .