During the Fronde, he was courted by both sides, initially supporting Mazarin; he later became a leader of the princely opposition. After the defeat of the Fronde, he entered Spanish service and led their armies against France, notably at Arras, Valenciennes, and Dunkirk. He returned to France only after the Treaty of the Pyrenees in 1659 but soon received military commands again.