Luis Méndez de Haro took over from Olivares as favourite Philip IV between 1659 and 1665. This was in order to alleviate interior conflicts sparked off by his predecessor (revolts in Portugal, Catalonia and Andalusia) and achieve peace in Europe.