The attack caused much damage to Prato . It led to the surrender of the Florentine Republic and control by the Medici family . The severity of the sack of Prato led to the surrender of the Florentine Republic , and to the restoration of the Medici rule .