Agro-industrial lignocellulosic residue from peanut shell was used to obtain a natural coagulant, cationic hemicelluloses (CH), adding value to the residue through means of biorefinery. The hemicellulose was applied, after its cationization by etherification reaction in alkaline medium with ETA, as a natural coagulant in the treatment of synthetic dairy effluent (SDE). FTIR showed an increase of the methyl group band in 1480 cm-1, degree of substitution DS 0.38 ± 0.05 and the positive zeta potential of +13.1 ± 0.5 mV CH indicating the insertion of ETA in the structure hemicelluloses whose zeta potential was negative of ‐11.4 ± 0.6 mV. The evaluation of the CH was performed with jartest on turbidity, apparent color, and COD for a pHcoagulation range 5–11 and dosages from 50-500 ppm. Coagulation diagrams were determined using the data spatial interpolation method of the adapted Kringing regression model. The maximum performance of CH of SDE by sedimentation and DAF occurred at 50 ppm and pH 11 with turbidity removal efficiency, true color and chemical oxygen demand (COD) of 84.74%/87.48%, 98.75%/99.37% and 99.89%/93.38%, respectively. Flake morphology was analyzed through the application of an image capture non-intrusive method indicated low particle aggregation, with fractal dimension (Df) of the flakes stabilized in the range of 1.68–1.83 ± 0.020 in 15 min with a predominance of flakes with first-class flake diameters (0.022–1.20 mm) for all dosages. That explains the slower sedimentation and occurrence of smaller dispersed flakes which favored subsequent solid-liquid separation by DAF.