Rome was plundered by imperial armies in 1527 ; the Medici were driven out of Florence and returned to power only under tutelage of the Spanish , who won effective control of the whole country .
The Medici were lucky to return to power after the Spanish conquest of Florence .