According to Hindu mythology, the cave is the place where Lord Shiva revealed the secret of immortality (Amar Katha) to his consort, Parvati. To ensure that no living being heard the secret, he left behind all his belongings, including Nandi the bull, at Pahalgam, his snake at Chandanwari, and his son Ganesha at Mahagunas Parvat.