The hardness of water is caused by the presence of dissolved mineral salts, especially bicarbonates, chlorides, and sulfates of calcium and magnesium.