Permanently hard water contains calcium ions or magnesium ions
When rain water flows through rocks, some minerals dissolve in the water. If these minerals contain calcium ions or magnesium ions the water will be permanently hard. The calcium ions or magnesium ions react with soap to form scum.