The detergent action of soap is due to its
Emulsifying property
Soap is an excellent cleanser because of its ability to act as an emulsifying agent. An emulsifier is capable of dispersing one liquid into another immiscible liquid. Soap anions emulsify oil and water