
This temple was built in the 15th century by the priest Pedanda Bahu Rawuh or Danghyang Nirartha from Majapahit Kingdom. During his voyage along the south coast he caught sight of a rock island and rested there. Some fishermen noticed him and invited him to stay at their hut. Nirartha refused, saying he preferred to spend the night on the little island. That evening, he talked to the fishermen and advised them to build a shrine on the rock. Nirartha felt it would be a holy and appropriate place to worship God.