During the Peninsular War, Burgoyne became commanding engineer on the staff of Sir John Moore in April 1808 and went with Moore's army to Sweden in May 1808 and to Portugal in September 1808. He then took part in the retreat from Corunna blowing up bridges behind the retreating army in January 1809.