Saponified oil soap molecules have two ends: water-loving (hydrophilic) and water-repelling (hydrophobic). The water-repelling ends of several soap molecules attach to oil & dirt in a cluster. The water-loving ends stick out, attach to water and allow the trapped soils to be washed away.