Soap is used for cleaning because its molecules trap dirt in the centre of its compound when in water. Soap cleans by acting as a surfactant and emulsifier. It can surround oil, making it easier to rinse it away with water.