Analysis of water in a place shows that the water contains Magnesium Chloride. The people in that place are advised to use detergents for washing clothes. Why?
The two most frequent minerals that make water "hard" are calcium and magnesium dissolved in water. As the calcium and magnesium concentration increases in the water its degree of hardness also increases, and is connected to the concentration of multivalent cations dissolved in the water. Synthetic detergents are considerably better cleaners than soaps since they are made up of numerous petroleum compounds. They are also antimicrobial and can readily displace the calcium and magnesium ions in hard water, making them suitable for use in hard water.