Ramanathaswamy Temple enshrines Lord Shiva as Ramanathaswamy, the lord of Rama, in the form of a lingam traditionally believed to have been installed by Lord Rama himself. According to the Ramayana, after the war in Lanka, Rama sought to absolve the sin of slaying Ravana, a Brahmin by birth, and directed Hanuman to bring a lingam from Kailash. When Hanuman delayed, Sita fashioned a lingam from sand, which Rama consecrated — this is the Ramanathaswamy lingam worshipped today. A second lingam, the Viswanatha, said to have been brought by Hanuman, is also enshrined and honoured first in ritual sequence.
The temple is a masterpiece of Dravidian architecture, expanded over centuries by Pandya, Chola, and Sethupathi rulers. Its most celebrated feature is the third corridor, stretching over 1,200 metres and lined with more than a thousand massive granite pillars, each intricately carved with yalis, deities, and mythic scenes. This corridor is regarded as the longest of its kind in any Hindu temple. Within the prakarams lie twenty-two theerthams, or sacred wells, whose waters are said to differ in taste and potency, each associated with specific purificatory benefits.