Hydrogen peroxide's foaming action is due to the catalase in blood and cells. Check out this HowStuffWorks podcast to learn how hydrogen peroxide interacts with catalase.
See omnystudio.com/listener for privacy information.