During the Peninsular War, he accompanied Sir Brent Spencer to the coast of Spain in 1808. In 1808 and 1809, he served in Portugal as assistant quartermaster-general and as "aide-to-camp" to the Duke of Wellington. He was present in the battles of Roliça , Vimeiro, Corunna, Talavera, and Buçaco, for which battles he had received a gold cross. He was also at the Wellington's passage of the Douro in 1809.