In 1746, the French captured the British post at Madras, and threatened but were unable to take that at Cuddalore. Muhammad Anwaruddin had warned both parties against attacking each other, but the French had disregarded his warning, and Joseph François Dupleix, the French governor-general, had placated him by offering him Madras.