Legend is that, the Peacock or Mayil, the vehicle (Mount) of Lord Muruga misbehaved with Lord Vishnu and Lord Brahma when they visited Lord Shiva at Kailas.
Lord Muruga became angry, cursed the Peacock to become a hill on earth. The Peacock came to this place, became a hill known as Mayuragiri on which the present temple situates. After much penance to Lord Muruga, the Peacock get rid of its curse and re-joined Lord Muruga as his vehicle at this place.
Here, six faced Lord Muruga mounted on a peacock, is worshipped along with his consorts Valli and Devasena. The temple structure is partially of a cave temple.
The cave temple, dedicated to Lord Shiva, on this hill is note worthy. It dates back to 8th century, with many beautiful sculptures of Hindu Gods inscribed on it. Sri Arunagirinathar, the famous Hindu saint of Tamil Nadu, had sung in praise of this Lord in his famous poem Tiruppugazh.
Thaipooyam and Painguni Utram festivals are important. During this time many devotees take a Pradikshin (circumvention) of the Mayuragiri as an offering to Lord Muruga.
Kunnakudi, made famous by the violin maestro Sri Kunnakudi Vaidyanathan, is 12 kilometers from Karaikudi, near to Madurai.