In 1512, during the War of the Holy League, the city was sacked by Spanish troops assembled by Pope Julius II and the king of Aragón, Ferdinand II, to recover the nearby city of Florence for 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. Historians debate the actual number of people killed during the sack, but contemporary chroniclers asserted between 2000 and 6000 people were slaughtered in the streets.