 In 1778 he transferred to the 80th Regiment of Foot (Royal Edinburgh Volunteers) as a Captain.He served in the American War of Independence on the staff of Sir Henry Clinton.He sold his commission in 1781, but was commissioned into the 1st Foot Guards in 1782.