The Tamil text Kanda Puranam narrates about the birth of Shasta identified with Aiyanar. The text tells just before the tale that Vishnu is Shiva's Shakti (wife and power) Parvati in a male form. The legend begins with Shiva's request and Vishnu's agreement to show his illusionary Mohini form, that he assumed for the distribution of amrita. Shiva falls in love with Mohini and proposes a union with her. Mohini-Vishnu declines saying that union of two men was unfruitful. Shiva informs Mohini-Vishnu that he was just one of forms of his Shakti (female consort). Thereafter, their union resulted in the birth of a dark boy with red locks, who was named Hariharaputra. Further, he was also known as Shasta and Aiyannar.