After the Vijayanagara Empire fell in the 17th century, the Nayaks established their state as an independent kingdom and they introduced the Palayakkarar system. In the latter part of the 18th century, the region came under the Kingdom of Mysore, following a series of wars with the Madurai Nayak dynasty. After the defeat of Tipu Sultan in the Anglo-Mysore Wars, the British East India Company annexed the region to the Madras Presidency in 1799. The region played a prominent role in the Second Poligar War (1801), when it was the area of operations of Dheeran Chinnamalai who fought against the rule of British East India Company.