As per Hindu legend, Dakshayani (also called Sati), the daughter of Daksha, married Hindu god Shiva. Daksha organised a huge Yajna, invited all the demigods and sages, and intentionally avoided Shiva and Dakshayani. Daksha yajna was an important turning point in the creation and development of sects in Hinduism.
It is the story behind the 'Stala Purana' (Origin story of Temples) of Shakti Peethas. Dakshayani wanted to meet her sisters and father, though her father had not invited her husband. Shiva discouraged her from attending the event as an uninvited guest, but she persisted and attended the event.
Daksha insulted her and her husband in front of the guests. She was insisting on depicting the havirbhaga, the prime offering of the yajna to her husband, which Daksha refused. She was unable to bear the insult, ran into the sacrificial fire and immolated herself.
Shiva, upon hearing the terrible incident became furious and invoked Veerabhadra and Bhadrakali by plucking a lock of hair and thrashing it on the ground. Veerabhadra and the Bhoota ganas marched south and destroyed all the premises of Daksha, who was decapitated. Daksha's wives were pleading with Shiva, upon whose request Shiva forgave and brought him to life by attaching a goat's head.
The Yajna was allowed to be completed in the presence of all demi-gods and sages. The place came to be known as Dakshapuram (place of Dakhsan) and since Shiva destroyed the wrongdoings of all the celestial deities for attending the yagna in his absence, it came to be known as Pariyalur (pari in Tamil means taking away).