however, when a british expeditionary force landed, junot was beaten at the battle of vimeiro on 21 august 1808, and he was cut off from france. only the signing of the advantageous convention of sintra allowed him to avoid capture, taking however with him "the weapons and baggages" and pillage the army had managed to gather—an expression that later became famous in portuguese usage. he went back to france in october, narrowly escaping a court martial. he returned to the iberian peninsula in 1810 in command of the viii corps, under marshal andré masséna, and was badly wounded.