He was appointed aide-de-camp to General Beresford, going with him in 1808 to the Peninsular War. He was present with Sir John Moore's army at Corunna, Talavera, Busaco, Nivelle, Nive, Bayonne, Orthes, Toulouse and the sieges of Ciudad Rodrigo, Badajoz, as well as several other minor engagements.