In 1807 he was appointed Commanding Officer of the 2nd Battalion of the 14th Regiment of Foot and he went on to fight at the Battle of Corunna and to take part in the Walcheren Campaign in 1809.