In the Battle of the Nive on 9 December 1813 and the Battle of St. Pierre d'Irrube on the 13th, Foy distinguished himself. In the hard fought Battle of Orthez, on 27 February 1814, he was left apparently dead on the field. Before this period he had been made count of the empire, and Commander of the Légion d'honneur. In March 1815, he was appointed inspector general of the fourteenth military division, but on the return of Napoleon, during the Hundred Days, he embraced the cause of the emperor. Foy commanded a division of infantry in the battles of Quatre Bras and Waterloo, at the last of which he received his fifteenth wound. This terminated his military career.