After Filippo Maria Visconti of Milan died in 1477 , Carrara was controlled by Tommaso Campogregoso , lord of Sarzana , and the Malaspina family . After the death of Filippo Maria Visconti of Milan in 1477 , Carrara was fought over by Tommaso Campofregoso , lord of Sarzana , and again the Malaspina family , who moved here the seat of their signoria in the second half of the 16th century .