In August 1782, he was the commanding officer of the fort of Trincomalee when the French lay siege to it in the run-up to the Battle of Trincomalee. He surrendered to Suffren on 30 August in exchange for safe passage to Madras for his 1,000-man garrison.