A detergent is a surfactant or a mixture of surfactants with cleansing properties in dilute solutions. … Their dual nature facilitates the mixture of hydrophobic compounds (like oil and grease) with water. Because air is not hydrophilic, detergents are also foaming agents to varying degrees.