Foam in wastewater can be a nuisance and a health hazard. It can also be a sign of a problem with the wastewater treatment system. There are a number of ways to remove foam from wastewater, depending on the cause of the problem.