Namakkal is a part of Kongu Nadu which was hotly contested and coveted by both the ancient Pallavas and the Pandyas. Namakkal was in the hands of Atiakula King called Gunasila who had an alliance with Pallava King through marriage. Later the taluk was overrun by the Cholas in the Mandalam. After the struggle between the Cheras, Cholas and Pandiyan, the Hoysalas rose to power and had control till the 14th century followed by Vijayanagar Kings till 1565 AD. Then the Telugu Madurai Nayaks came to power in 1623 AD. Two of the Polygons of Thirumalai Nayak namely, Ramachandra Nayaka and Gatti Mudaliars ruled the Salem area. The Namakkal Fort is reported to have been built by Ramachandra Nayakas. After about 1625 AD, the area came successively under the rule of Muslim Sultans of Bijapur and Golkonda, Mysore kings and then the Marathas.