The ruler (naduvazhi) Ancharamanaykkal Vazhunnavar of Eruveshi, Kannur was unhappy, as he had no child. His wife Padikutty Amma was a devotee of Lord Shiva. She made a sacrifice to Shiva for children. One day in her dream she saw the Lord. The very next day, while she was returning after a bath from a nearby river, she saw a pretty child lying on a rock nearby (which is worshipped even today). She took the child home and she and her husband brought Him up as their own son.