Ca2 and Mg2 ions react with soap to form an insoluble grey white suspensionprecipitate called Scum curd Ca2 and Mg2 ions in water come from the water sources passing through rocks containing soluble salts of Ca2 and Mg2 eg Limestone or gypsum