 During the long regency for Charles II, the last of the Spanish Habsburgs, favouritism milked Spain's treasury, and Spain's government operated principally as a dispenser of patronage.Plague, famine, floods, drought, and renewed war with France wasted the country.The Peace of the Pyrenees (1659) had ended fifty years of warfare with France, whose king, Louis XIV, found the temptation to exploit a weakened Spain too great.