A soap molecule contains two chemically distinct parts that interact differently with water. It has one polar end, which is a short head with a carboxylate group (-COONa) and one non – polar end having the long tail made of the hydrocarbon chain.
The polar end is hydrophilic (Water-loving) in nature and this end is attracted towards the water. The non – polar end is hydrophobic (Water hating) in nature and it is attracted towards dirt or oil on the cloth, but not attracted towards the water. Thus, the hydrophobic part of the soap molecule traps the dirt and the hydrophilic part makes the entire molecule soluble in water.
When soap or detergent is dissolved in water, the molecules join together as clusters called ‘micelles’. Their long hydrocarbon chains attach themselves to the oil a dirt. The dirt is thus surrounded by the non-polar end of the soap molecules. The charged carboxylate end of the soap molecules makes the micelles soluble in water. Thus, the dirt is washed away with the soap.