Over thousands of years, areas with limestone rocks can develop caves. Groundwater dissolves a network of tunnels in the rock. If the water table is lowered by a change in climate or tectonic uplift of the area, groundwater drains out of the tunnels, leaving the caverns exposed to air.
Click the image to see the animation. Use the control buttons to step through or replay the movie.