A method for treating wastewater compresses subjecting the wastewater to an anaerobic setting step for at least 6 hours and passing the liquid effluent from the anaerobic settling step through a filter cell in an upflow manner. There the effluent is subjected first to the action of anaerobic and facultative microorganisms, and then to the action of aerobic microorganisms and the roots of at least one vascular aquatic plant