Hydraulic fracturing, or fracking, provides critical energy for society, but also uses large amounts of fresh water while producing corresponding amounts of wastewater. Water-based foams, which use about 90 percent less water than fracking fluids, provide an alternative, but the mechanism for foam-driven fracture in such drilling is not well understood.