He moved in 1805 to the 1st battalion which was leaving for Portugal. He fought in the battles of Rolica, Vimeiro and Corunna. In 1809 he was promoted to lieutenant-colonel and assisted General Beresford in organising the Portuguese army. In that capacity he was made full colonel and then brigadier. He was present through most of the fighting in the Peninsula.