Marmont was appointed governor-general of all the Illyrian provinces of the empire. In July 1810, Marmont was hastily summoned to succeed Masséna in the command of the French army in northern Spain. In spite of the presence of the British army, his relief of Ciudad Rodrigo was a great feat. The manoeuvering which preceded the Battle of Salamanca was not successful, however, as Wellington ordered his cavalry to charge Marmont's unsuspecting left flank in the battle and inflicted a great defeat on the French. Marmont and his deputy commander Comte Jean-Pierre François Bonet were both struck by shrapnel very early in the battle. Marmont was gravely wounded in the right arm and side, and command of the battle passed to Bertrand Clauzel. He retired to France to recover.