Washing soda (sodium carbonate decahydrate, Na2CO3·10H2O) is a water softener. It reacts with calcium and magnesium ions in hard water, converting them into soluble forms, thus softening the water. Softened water allows soap to lather better and clean clothes more effectively. Hard water reduces soap's cleaning efficiency.