The hardness in water is caused by bicarbonates and sulphates of calcium and magnesium. When water is boiled, soluble bicarbonates decompose into insoluble carbonates, which can be removed by filtering water through a fine cloth. This converts hard water into soft water.