When a soap is used in hard water, a solid substance we call scum forms. This is because charged calcium and magnesium particles (called ions ) present in the water react with soap to form an insoluble substance. Scum builds up on clothes, baths and sinks. Detergents do not form scum.