According to the text Thirupanimalai, the Vijayanagara commander Kumara Kampana after completing his conquest of Madurai, rebuilt the pre-existing structure and built defensive walls around the temple in the 14th century.
According to the text Thirupanimalai, after conquering Madurai, the Vijayanagara commander Kumara Kampana restored an existing structure and built fortifications around the temple in the 14th century.