The Anglo-Mysore Wars of 1766 to 1799 , the Anglo-Maratha Wars of 1772 andPolygar Wars of 1800-1805 Dheeran chinnamalai , the Tamil king won three polygar wars against Britishers and at last he was hanged along with his two brothers . The Anglo-Mysore Wars of 1766 to 1799 and the Anglo-Maratha Wars of 1772 to 1818 put the Company in control of most of India .