The process of removing the dissolved magnesium and calcium salts causing hardness in water is called softening. For softening, chemicals such as sodium carbonate (Na2CO3), slaked lime (Ca(OH)2), etc can be used. Also, sodium chloride (NaCl) can be used to soften hard water.