There are two types of hardness , one is called temporary hardness and another one is permanent hardness. Temporary hardness is caused by calcium or magnesium hydrogen carbonate. Temporary hardness can be removed simply by boiling the water or chemical treatment.
* Ca(HCO3)2+Ca(OH)2 - 2CaCO3+2H2O