In the late 4th century BC, a cult of Attis became a feature of the Greek world. The story of his origins at Agdistis, recorded by the traveler Pausanias, have some distinctly non-Greek elements: Pausanias was told that the "daemon" Agdistis initially bore both male and female attributes. But the Olympian gods, fearing Agdistis, cut off the male organ and cast it away. There grew up from it an almond-tree, and when its fruit was ripe, Nana, who was a daughter of the river-god Sangarius, picked an almond and laid it in her bosom. The almond disappeared, and she became pregnant. Nana abandoned the baby (Attis). The infant was tended by a he-goat. As Attis grew, his long-haired beauty was godlike, and his mother, Agdistis as Cybele, then fell in love with him. But the foster parents of Attis sent him to Pessinos, where he was to wed the king's daughter. According to some versions the King of Pessinos was Midas. Just as the marriage-song was being sung, Agdistis/Cybele appeared in her transcendent power, and Attis went mad and cut off his genitals. Attis' father-in-law-to-be, the king who was giving his daughter in marriage, followed suit, prefiguring the self-castrating corybantes who devoted themselves to Cybele. But Agdistis repented and saw to it that the body of Attis should neither rot at all nor decay.