Chemically Detergents are the salts of long chain sulphonic acids and soaps are the salts of long chain fatty acids, both work in normal water but in hard water only detergent works , so detergents may work as soaps but soaps do not work as detergents.