Despite deteriorating health, he regrouped and tried again. He suffered a severe defeat in the Battle of Rivoli on 14–15 January 1797. Mantua surrendered soon afterward. He was then given the position of military governor of Hungary, and promoted to Field Marshal in 1808. He died two years later in Buda.