Surfactants in laundry detergent have two ends, a hydrophobic tail that is attracted to grease and dirt and a hydrophilic head that is attracted to water. The surfactants' tails pull stains and dirt out of your clothing, and the heads suspend particulates in the water, keeping them dislodged from your clothing.\r