He commanded a Division during the advance into Spain and commanded the British left at the Battle of Corunna in 1809, succeeding to overall command when Sir John Moore was killed. Later that year he commanded the reserve army during the Walcheren Campaign. He was appointed Commander-in-Chief, Ireland and was admitted to the Irish Privy Council in 1812. He then commanded the First Division under The Duke of Wellington at the Battle of Nivelle and at the Battle of the Nive in 1813. He was captured fighting the French sortie at the Battle of Bayonne in 1814.