(N/A) soap molecule consists of two parts: a long hydrocarbon chain which is hydrophobic (water-repelling) and an ionic head which is hydrophilic (water-attracting).
When soap is dissolved in water,the hydrophobic tails attach themselves to the oil or dirt particles,while the hydrophilic heads point outwards into the water.
This arrangement forms a spherical structure known as a micelle.
The hydrophobic tails trap the oil droplet in the center,and the hydrophilic heads,being negatively charged,repel each other,keeping the dirt suspended in the water as an emulsion.
This allows the dirt to be easily rinsed away from the clothes during washing.