Although the exact origins of the cave are uncertain, it is believed to have been built as place for spiritual meditation.Bali Package is one folklore relates that it was created by the fingernail of the legendary giant Kebo Iwa. However, examining its style, the sanctuary was probably dated from the 11th century Bali Kingdom.