What are soaps and detergents? Describe the cleansing action of soap?

What are soaps and detergents? Describe the cleansing action of soap?