Legend has it that a Pandya king issued an order asking each family to send one person to work on strengthening the banks of Vaigai river. Lord Shiva appeared in the form of a youth and offered to do the work on behalf of an elderly woman. But he dozed off on the banks of the river. On noticing this, the King got angry and struck him with a cane. The blow fell on everyone else, including the King.