In 1808 the Rifles were posted to Portugal and fought in the opening campaigns of the Peninsula War, at the Battles of Rolica and Vimeiro. During the retreat to Corunna Harper was among a small group of Riflemen trapped behind enemy lines and led an unsuccessful mutiny against the only surviving officer – Richard Sharpe (Sharpe's Rifles).