Leachate is the most difficult wastewater to be treated due to its complex content and high pollution release. For this reason, since it is not possible to be treated with a single process, a pre-treatment is needed. In the present study, a batch electrocoagulation reactor containing aluminum and iron electrodes was used to reduce chemical oxygen demand (COD) from landfill leachate (Tunceli, Turkey). Optimization of COD elimination was carried out with response surface methodology to describe the interaction effect of four main process independent parameters (current density, inter-electrode distance, pH and time of electrolysis). The optimum current density, inter-electrode distance, pH and time of electrolysis for maximum COD removal (43%) were found to be 19.42 mA/m2, 0.96 cm, 7.23 and 67.64 min, respectively. The results shown that the electrocoagulation process can be used as a pre-treatment step for leachate.