According to Sri Lankan mythology, the events occurred among the Veddah people near Kataragama, Sri Lanka. However, South Indian Puranas state that Kataragama was the place where Murugan stationed his army during his war with Surapadman.
Valli had her heart and soul dedicated to Murugan and would always pray with fervent devotion and love, to be with him. Once, the tribal chief planned to develop a field for growing thinai (foxtail millet), and tasked Valli with protecting it from pests. Moved by Valli's devotion, Murugan met her in the form of a handsome tribal hunter, who had lost his way on a hunting chase. This form of Murugan called the 'Veduvan Kolam' is worshipped at the Palaniappar temple at Belukurichi. Valli did not recognize the stranger and promptly asked him to leave the place. Seeing the chief arriving at the field with honey and fruits for Valli, Murugan turned himself into a tree. After the chief and his followers left, the god changed back into his hunter form and declared his love to Valli.
The chieftain's daughter, who had only Murugan in her heart, was infuriated at this declaration, and lashed out at the hunter. When the chieftain and his followers returned to the place, Murugan disguised himself as an old man. The chieftain, on seeing the aged man, requested him to stay with Valli, till he and his hunting party returned.
The old man was hungry and asked Valli for food; she gave him a mixture of the millet flour and honey. However, it made him thirsty, and he asked for water. She provided water from a nearby stream. He jokingly remarked that she had satisfied his thirst, and she could quench his thirst for a companion. Valli was angered again, and started to leave the place. He requested assistance from his divine brother, Ganesha, who appeared as a wild elephant at that time. On seeing the wild elephant, Valli was scared and ran back to the old man, pleading with him to save her from the elephant. Murugan agreed to save her only if she agreed to marry him. In the heat of the moment, she agreed, and he revealed his true form. It was then that Valli realised that it was her beloved deity she had consented to wed.
1