The cleaning action of soaps and detergents is due to their amphipathic structure, allowing them to bridge the gap between water and nonpolar substances like grease.