Detergents function as cleaning agents, primarily operating through the use of surfactants, or surface-active agents. These compounds are crucial because they reduce the surface tension of water, allowing the solution to penetrate surfaces and suspend particulate matter. Chemically, detergents work by forming micelles, which are microscopic structures capable of encapsulating oily residues, grease, and suspended dirt particles. This emulsification process suspends the soils in the wash water, preventing them from redepositing onto surfaces, thereby facilitating the removal of contaminants through rinsing. The efficacy of a detergent depends on the type of surfactant utilized, as various chemical structures are designed to interact with different types of stains and soil matrices.