In August 1811 Sayer took part in the Invasion of Java under Sir Robert Stopford. In June 1813 he led a punitive expedition to Borneo to subdue the Sultanate of Sambas.