hydrogen peroxide is mixed with a catalyst like potassium iodide or yeast, leading to a rapid decomposition of hydrogen peroxide into water and oxygen gas. The reaction produces a large amount of foam that resembles toothpaste squirting out of a tube, hence the name.