He fought for the Holy Roman Empire in the Thirty Years' War and then for Spain in the Franco-Spanish War (1635–1659), where he distinguished himself in the Battle of Arras (1654) and the Battle of Valenciennes (1656).&lt;br&gt;