As water passes through layers of rocks it dissolves various mineral matters, especially carbonate of lime.
As it passes through the soil its solvent properties are increased by organic acids which are derived from the
organic matter which it meets with in the soil.