the caves developed in limestone which was formed from corals growing in shallow waters around volcanic islands. after becoming exposed on land, the limestone was dissolved by acidic rain and underground water.