Soap contains a nonpolar carbon end that dissolves in nonpolar fats and oils, and a polar end that dissolves in water.
Dust and soap molecules form micelles that dissolve in water and arewashed away.
Soap forms a precipitate with ions in hard water (Ca2+, Mg2+, Fe3+)