During the later stages of the Peninsular War Dalhousie commanded the 7th Division under the Duke of Wellington. Wellington was sometimes critical of his performance, as during the retreat from Burgos, because of his tardy arrival at Vitoria, and for his misinformation about French intentions shortly before the Battle of Roncesvalles.