According to legend, the Atmalinga was perforce placed at Gokarna, in the temple precincts where it is now deified. It was Ravana, the demon King of Lanka, known from the epic, Ravana had carried it there from Mount Kailash in the Himalayas.