The British violated the Treaty of Madras in 1771 by not supporting Haidar when he was attacked by the Marathas.