Koneswaram Temple is located on a rock promontory of Trincomalee. This is one of the Pancha Ishwarams dedicated to Shiva. It 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 to get rid of the malediction of killing Ravana.