Limestone
Carbonates are rocks formed from these sources, plus any CaCO3 which is precipitated out of solution. Some carbonate dissolves in the water. It gets  precipitated when the physical condition of the water changes. For example, if the concentration of CaCO3 is high, then a temperature drop, or a pH (acidity) change, can cause precipitation.