Here's how it works:
1. Rainwater: Rainwater naturally absorbs carbon dioxide from the atmosphere, becoming slightly acidic.
2. Carbonic Acid Formation: This carbon dioxide reacts with the water to form carbonic acid (H₂CO₃).
3. Dissolving Limestone: As acidic rainwater seeps through the ground, it encounters limestone (calcium carbonate, CaCO₃). The carbonic acid reacts with the calcium carbonate, dissolving it and creating calcium bicarbonate (Ca(HCO₃)₂).
4. Cave Formation: Over time, this continuous dissolving process creates cracks and crevices in the limestone. These eventually enlarge into caves and caverns.
Other factors contributing to cave formation:
* Temperature: Warm water dissolves limestone more readily than cold water.
* Pressure: Water under pressure, like groundwater, is more acidic and can dissolve limestone faster.
* Organic Acids: Plant roots and decaying organic matter can also contribute to the acidity of the water, enhancing the dissolving process.
The formation of caves is a slow process, taking thousands or even millions of years to develop.