This town fell into the hands of the British in 1781 after the two naval battles between British and French fleets were fought off the coast of Negapatam, as it was then known: the first in 1758 as part of the Seven Years' War and the second in 1782 as part of the American Revolutionary War. The town was taken by the British from the Dutch in 1781 (who had been formally brought into the war in 1780). When the Dutch and British reached a peace agreement in 1784, Nagapattinam was formally ceded to the British. 277 villages with Nagore as the headquarters were handed over to the East India Company.