 Second century AD Tamil poetry speaks of "Kama kottam", and the "Kumara kottam" (currently the Kamakashi Amman temple and the Subramanya temple).The temple finds mention in the classical Tamil Sangam literature dated 300 BCE like "Manimegalai" and "Perumpāṇāṟṟuppaṭai".Initially temple was built by Pallavas.