The chemical oxygen demand (COD) of gas refinery wastewater containing discharged ethanolamines and an extent of hydrocarbons was highly reduced utilizing ZIF-8-Zn metal organic framework adsorbent. The mesoporous adsorbent was initially synthesized through hydrothermal method and characterized via FT-IR, XRD, SEM, TEM, EDX, Zeta potential and BET analysis methods. The COD reduction of the wastewater was then followed with effects of pH (5.5–11.5), adsorbent concentration (0.2–2.5 g/L) and contact time (15–110 min). The response surface methodology (RSM) was employed for design of experiments, modelling and optimization of the process. Amazingly, 98.6 % COD reduction was achieved under mild operating conditions of pH 8.3, adsorbent concentration of 1.5 g/L and temperature of 293.2 K after 63 min contact time. A quadratic equation satisfactorily correlated the COD variations versus involved parameters. The data were also precisely correlated with the extended Langmuir isotherm and the mixed 1, 2-order kinetic model implying mono-layer adsorption of the multicomponent adsorbates through physisorption mechanism because of dominant electrostatic interactions. The results of thermodynamic analysis were also consistent with findings. The maximum adsorption capacity of 972.20 mg/g as well as nice reusability in five sequential cycles proved the promising capability of the adsorbent for decontaminating of the gas refinery wastewater.