Read the story
Wait for the tide to drop, and a path opens across the sand to a dark rock crowned with shrines. For a few hours, you can walk to the temple. Then the sea takes the road back.
Tanah Lot means "land in the sea" in Balinese, and the story of how it got there begins with a man from Java. Dang Hyang Nirartha was a Hindu priest born as the Majapahit kingdom was fading. He crossed to Bali, became royal priest of the Gelgel kingdom, and is remembered as the most influential reformer of Balinese Hinduism. In the sixteenth century, his travels around the islands are said to have brought him here.
What happened next belongs to Balinese tradition. Nirartha meditated on a rock at Beraban, and the village leader, Bendesa Beraban Sakti, did not like what he was teaching. He ordered the priest to leave. Nirartha agreed, but first he pushed the rock out into the sea and built a temple on it. He turned his sash into a sea snake to stand guard. And he planted his wooden staff, and fresh water sprang up from beneath the rock, surrounded by salt. Pilgrims still treat that water as holy, and black-and-yellow-banded sea snakes are still pointed out as the temple's guardians.
The ocean, though, never signed on to the legend. In the 1980s, the rock face began to crumble. Starting in 1987, workers set a tetrapod breakwater and concrete walls in front of the temple, and Japan lent Indonesia money to protect Tanah Lot and other sites across Bali.
The result is something most visitors never notice. More than one-third of the "rock" is now artificial, disguised to look like the stone around it.
So the temple of the sea god still stands where tradition says a priest set it down. It just took a second miracle, this one made of engineering and borrowed money, to keep it there.