He served as major in Reay’s Fencibles from 1794 to 1798, and was then on half-pay with the Yorkshire Fusiliers until 1802. He served as a volunteer during the Napoleonic Campaign in Egypt, where he impressed senior officers including Sir John Moore.