The bubbles supply oxygen-rich air for the eggs and hatchlings of wild betta fishes, which dwell in shallow waters with little oxygen. As a result, it serves as both protection and a healthy habitat for hatchlings who are unable to safely reach more oxygen-rich places or the surface. The bubbles are created by gulping air at the surface and then producing saliva bubbles. These are frequently buried behind leaves or other floating debris to shield the eggs from predators at the surface, such as insects.