With hard water, soap solutions form a white precipitate (soap scum) instead of producing lather, because the 2+ ions destroy the surfactant properties of the soap by forming a solid precipitate (the soap scum). A major component of such scum is calcium stearate, which arises from sodium stearate, the main component of soap: