According to Hindu legend, Mahalingaswamy at Thiruvidaimarudur is the centre of all Shiva temples in the region and the "Saptha Vigraha moorthis" (seven prime consorts in all Shiva temples) are located at seven cardinal points around the temple, located in various parts of the state. The seven deities are Nataraja in Chidambaram Nataraja Temple at Chidambaram, Chandikeswarar temple at Tirucheingalur, Vinayagar in Vellai Vinayagar Temple at Thiruvalanchuzhi, Muruga in Swamimalai Murugan Temple at Swamimalai, Bhairava in Sattainathar Temple at Sirkali, Navagraha in Sooriyanar Temple at Suryanar Kovil and Dakshinamoorthy in Apatsahayesvarar Temple, Alangudi at Alangudi, Papanasam taluk.