On 23 May 1706 Marlborough beat Villeroy at Ramillies in the Spanish Netherlands. Thereupon, Louis XIV ordered Vendôme with a big part of the Armée d'Italie to Flanders to redress the situation there. Dillon and his regiment stayed behind in Northern Italy. Philippe II, Duke of Orléans, who would rule France as Regent from 1715 to 1723, replaced Vendôme in Italy, taking up his new position in July.