Thirunallar- Legend behind the temple
Thirunallar is a small town in Karaikal, India, in the Union Territory of Pondicherry (better known in the Tamil language as Puducheri), and can be reached by road from the town of Karaikal which lies in the neighbouring state of Tamil Nadu. Thirunallar is most noted for the shrine of Lord Shani (Saturn), Tirunallar Saniswaran Temple within the temple dedicated to Lord Darbharanyeswaran, a form of Lord Shiva.
We can reach by road via Trichy - Thanjavur - Thiruvarur - Karaikal - Thirunallar or Thanjavur - Kumbakonam - Thirunallar
The Story of the Pachchai Padigam (In the Tamil language, Pachchai = evergreen, Padigam = decadal verse) Thirunallar possesses one of the greatest pieces of Tamil hymnal literature called "Pachchai Padigam". This hymn is written in praise of Lord Darbharanyeswaran. Story has it that in the 7th century C.E. (Common Era), in Madurai, the capital of the Pandian Kingdom, the king Ninraseernedumaran converted to Jainism. During this time, Jainism was spreading in influence in South India. Soon, all but his queen Mangaiyarkarasi and his minister Kulacchirai Nayanar - both staunch Saivaites (worshippers of Lord Shiva) had embraced Jainism, forsaking the old religion. This caused immense agony to the queen and the minister who were anxious to reclaim both king and kingdom back into the fold of the traditional religion (Saivism).
To these two grief stricken individuals came news of the camping of boy saint Thirugnana Sambandar at Vedaranyam. Having heard of the miracles performed by this young Saivite saint in Thanjavur district, they sent an urgent invitation to him to visit Madurai and extricate the king and his subjects from the clutches of Jainism.
The arrival of the Saivate saint irked the Jains, who are said to have then set fire to his holy dwelling. But by his yogic powers, Sambandar had the heat transferred to the king, who consequently suffered in agony. The young saint then sang the Padigam 'Mandiramavadu Neeru' and sprinkled a few grains of holy ash on the right side of the king's body to alleviate the pain. The Jains in turn chanted the Aruga Mantra (Jain Mantra) and stroked the left side of the king's person with peacock feathers, but it only aggravated the pain! In response to entreaties by the king and his ministers, Sambandar applied a few more grains of the sacred ash to the king's left side also and the poor Pandian monarch, who only a little while ago was the very picture of suffering, misery and distress, now smiled gaily and was free of his burns.
But the Jains challenged the Saivites further, asking that the Mantras of both religions be written on palm leaves and consigned to flames to see which one survived the ordeal of fire (thereby showing superiority over the other). The Jains first placed their palm leaf onto the fire but it was soon consumed by the flames. Saint Thirugnana Sambandar placed on the flames one leaf containing the forty-ninth Padigam of the Tevaram hymn which was sung at the shrine of Lord Darbharanyeswaran Shiva at Thirunallar. The leaf remained untouched by the flames and maintained its evergreen freshness, reestablishing Saivism as the true religion in Pandian capital. Hence the glory of the Thirunallar temple.