 At the end of 1806 he was promoted to general of division and in 1807 he distinguished himself at the Battle of Eylau against the Russians.His performance brought him to the attention of Napoleon Bonaparte, and having already been awarded the Légion d'honneur, on 10 March he was made a Count of the Empire.From 1808 until 1811 he fought in the Peninsular War.