Topic summary
Foaming

Extracted from the Wikipedia article Foam.
Stabilization
The Marangoni effect depends on the liquid that is foaming being impure. Generally, surfactants in the solution decrease the surface tension. The surfactants also clump together on the surface and form a layer as shown below.