On his return he entered the service of the Emperor Leopold (1682) and fought with distinction against the Turks, by whom he was wounded and captured in an action on the River Rába; sold to a pasha who met him after the Battle of Vienna, his release was secured in 1684.
=== La vita militare ===Nel 1682 si arruolò nell'esercito dell'imperatore Leopoldo I, fu ferito e fatto prigioniero dai Turchi in un'azione sul fiume Rába, e venduto come schiavo a un Pascià che accompagnò alla battaglia di Vienna.