Portuguese Restoration War
He lost the Battle of Castelo Rodrigo in 1664, as part of the Portuguese Restoration War. He was Viceroy of Catalonia, 1667–1669, Governor of the Duchy of Milan, Italy, (1670–1674), when he was replaced by Claude Lamoral, Prince of Ligne.