Introduction to geological wonders: Calcium carbonate in limestone reacts with water and carbon dioxide to form highly soluble calcium bicarbonate. After the conditions change, calcium carbonate is regenerated. Over the years, it precipitates and becomes today's stalactites.