A surfactant is a chemical that lowers the surface tension of a liquid. Less surface tension lets the liquid soak into things better, and can also let bubbles form easier. A liquid that bubbles and soaks into things is better at cleaning, so surfactants are used in soap.