Condé only escaped when the Duchess of Montpensier persuaded the Parisians to open the gates; in September, he and a few loyalists defected to Spain. Despite victory over Turenne at Valenciennes in 1656, defeat at the Battle of the Dunes in June 1658 led to the Treaty of the Pyrenees in 1659. Bending his knee to the rising Sun King, Condé was pardoned and restored to his previous titles, but his power as an independent prince was broken.