The rate and extent of flocculation can be controlled by varying such conditions as pH, ion concentration (e.g., magnesium concentration), concentration of the cationic flocculating agent (e.g., iron), and by addition of organic molecules that bind to divalent ions (e.g., xylitol).