Promoted to captain in 1808, he served in the Peninsular War from 1811 to 1814, attached towards the end to the Portuguese Army. He was present at the Siege of Badajoz, the Battle of Salamanca, the retreat from Madrid to Burgos and the Battles of Vittoria, the Pyrenees, Nivelle and Nive. He received the silver war medal with six clasps and was honoured by the Portuguese by being made a Commander of the Order of Aviz and a Knight of the Order of the Tower and Sword. He was promoted to Major in 1814 and placed on half-pay in late 1816.