coimbatore played an important role in the second polygar war when the region was under dheeran chinnamalai. coimbatore city was named the capital of newly formed coimbatore district. it is said that the district comprised of modern-day tiruppur, erode, karur, nilgiris in tamil nadu, palakkad in kerala and chamarajanagar in karnataka.