During the Napoleonic Wars, Gyulay fought in the 1805 campaign against the First French Empire and later served his emperor as a negotiator in the peace talks. He commanded an Austrian army corps in the 1809 campaign in Italy. Again leading a corps, he fought at the decisive Battle of the Nations in 1813. During the subsequent French campaign in 1814, he led one of the corps in the victorious Allied armies.