The reasons for the city's destruction are unclear. According to Vansanthi, the Pandyas who defeated the Cholas during the later part of the 13th century "may have razed the city to the ground" to avenge their previous defeats. However, it is unclear why other temples were destroyed and this temple was spared, as well as why there are around 20 inscriptions from later Cholas, Pandyas and Vijayanagar Empire indicting various gifts and grants to this temple. An alternate theory links the destruction to the raids and wars, particularly with the invasion of the capital city and the territories that were earlier a part by the Chola Empire along with Madurai by the armies of Delhi Sultanate led by the Muslim commander Malik Kafur in 1311, followed by Khusrau Khan in 1314 and Muhammad bin Tughlaq in 1327. The period that followed saw wars between the Hindu kings and the Muslim Sultans who seceded the Delhi Sultanate and carved out new polity such as the nearby Madurai Sultanate (1335–1378). The Vijayanagara Empire defeated the Madurai Sultanate in 1378 and this temple along with other Chola era temples thereafter came under Hindu kings again who repaired and restored many of them.