In 1512, the city was attacked by the Spanish troops sent by Pope Julius II to capture the nearby city of Florence for the Medici family. The attack caused much damage to Prato. It led to the surrender of the Florentine Republic and control by the Medici family. The army killed 50,600 citizens of Prato in the streets.