Rapp stayed in the line of fire: at Essling, he led the front of his fusiliers of the "Garde impériale" and carried the day; during the signing of the Treaty of Schönbrunn, he averted a planned attempt on Napoleon by the young Friedrich Staps; in Russia, he was wounded by four bullets at the battle of Moscow on 5–7 September 1812. He saved Napoleon's life a second time by repelling an attack of Cossacks at the Gorodnia and was again wounded at the passage of the Berezina, fighting alongside Ney in the rear guard. As governor of Danzig, Rapp held the town for a year after the "Grande Armée" left Russia.