Hydrogen peroxide breaks down into oxygen and water. As a small amount of hydrogen peroxide generates a large volume of oxygen, the oxygen quickly pushes out of the container. The soapy water traps the oxygen, creating bubbles, and turns into foam.
Its most significant when all other forces are absent