The aim of this contribution is to provide a comprehensive comparison between chitosan and Moringa oleifera seed flour (MOSF) as coagulant-flocculants. MOSF was obtained as a byproduct in a biodiesel process. Turbidity and heavy metal ion removal, using both ecofriendly materials, was assessed. Jar tests were performed on samples taken from river water, agricultural wastewater, and mixed wastewater (contaminated with agricultural and urban residues). Bioflocculant dosages within the range of 0.005-20 mg L À1 were tested. Irrespective of the initial turbidity, the optimal dosage of chitosan and MOSF for decreasing turbidity in river water was 1 and 5 mg L À1 , respectively. Furthermore, from river water, Pb removal up to 95% was achieved irrespective of the bioflocculant; for Mn removal, MOSF performed better than chitosan, with the adsorbent trapping close to 90% of this metal. MOSF decreased turbidity levels and heavy metal content (Mn and Pb) to under the permissible limits (Mexican environmental regulation for potable water, NOM-127-SSA1-1994). Additionally, kinetic data were fitted to kinetic models of adsorption for the pollutants. For agricultural wastewater, a chitosan dosage of 10 mg L À1 reduced turbidity to 5-10 nephelometric turbidity units (NTU), and a MOSF dosage of 10 mg L À1 decreased the turbidity to values lower than 5 NTU. For the mixed wastewater, chitosan achieved a high turbidity removal, while MOSF was not suitable.