As a successful army-commander in service of the Holy Roman Emperor, he had converted to Roman Catholicism in 1712. He was militarily successful under Prince Eugene of Savoy in the Spanish War of Succession as well as in the war against the Turks. In 1719 he was appointed imperial governor of Belgrade.