In 1799 he took part in the Duke of York's expedition to the Netherlands. He served as commander of the Advance Guard, an elite brigade composed of grenadiers and light infantry. He negotiated and signed, as British representative, the Convention of Alkmaar that ended that campaign.