Limestone is composed primarily of calcium carbonate (CaCO3). When limestone is exposed to water and carbon dioxide, a chemical reaction occurs that results in the formation of calcium bicarbonate (Ca(HCO3)2) and the release of carbon dioxide gas. This process, known as carbonate weathering, can contribute to the removal of carbon dioxide from the atmosphere.