Another technique for wastewater treatment is by electrocoagulation (EC), where a sacrificial anode undergoes oxidation, releasing metal ions, and the hydrolysis of water takes place at the cathode,resulting in the formation of hydroxyl ions. Metal ions combine with the hydroxyl ions to form metal hydroxide compounds that favor the formation of flocs by destabilizing the suspended particles. The resulting flocs can be separated from the liquid by flotation or sedimentation depending on their density