In the 7th century,
Jainism was one of the major religions in
South India. Koon Pandian had embraced Jainism from
Shaivism, but his wife,
Mangayarkkarasiyar, and his minister,
Kulachirai Nayanar, were both Shaivites. When the king suffered from
boils and incurable fever, the two invited the Shaivite saint,
Sambandar, to Madurai. Sambandar is said to have cured his fever and his hunched back. After this, the king became a Shaivite, and several of his subjects converted to Shaivism during his rule. The Tamil poet
Sekkizhar honoured Koon Pandiyan, Kulachirai and Mangaiarkkarasi by naming them among the 63
Nayanars in
Periya Puranam. According to a Shaivite legend, when the Jains in
Samanatham refused to convert to Shaivism, the king ordered their killings with the consent of Sambandar. Around 8,000 Jains were said to have been killed by
impalement in which the victims were forcefully put over sharp, tall, conical structures in sitting posture. However, this legend is not found in any Jain text and is believed to be a fabrication made up by the Shaivites to prove their dominance. == Legacy ==