Thiru Koneswaram was built by Rishi Agastya on the instructions of Lord Shiva who was impressed by the devotion of King Ravana. This place is unique in this respect because the Lord built a temple for his devotee as a reward for his devotion. Lord Rama is believed to have offered his prayers here in order to get rid of the malediction of killing Ravana who was a Brahmin, meaning Brahmahasthi Dosham.