A vermifilter (also vermi-digester or lumbrifilter) is an aerobic treatment system, consisting of a biological reactor containing media that filters organic material from wastewater. The media also provides a habitat for aerobic bacteria and composting earthworms that purify the wastewater by removing pathogens and oxygen demand. The "trickling action" of the wastewater through the media dissolves oxygen into the wastewater, ensuring the treatment environment is aerobic for rapid decomposition of organic substances.