Many sages lived in the Darukavana, a cedar forest. One day a couple entered the forest, he was naked she was a beauti. They were Shiva and Vishnu as Mohini.
The wives of the sages were enraptured by the man, the sages by the woman.
Although being high evolved sages they got angry with their wives. Shiva taught them a lesson.
Another myth – the ascetics despised him and cursed him for losing his penis. This flew through the world like a rocket, destroying everything. The ascetics panicked and prayed to the Goddess to pacify Shiva with her vagina (yoni). This is how the Linga/Yoni symbol originated.