This study presents a novel, eco-friendly method for removing methyldiethanolamine (MDEA) from wastewater, addressing its environmental impact and elevated chemical oxygen demand (COD) from gas refineries. We employed two wetland plants, Phragmites australis and Typha latifolia, utilizing a hydroponics approach to assess MDEA removal efficiency. Wastewater samples from the Ilam gas refinery in Iran were tested at varying initial concentrations (50 to 1600 ppm) over three consecutive 7-day periods, with a 1-day rest interval. Key factors influencing MDEA absorption-contact time, initial effluent concentration, and pH-were systematically analyzed. Results indicated a significant decrease in pH, COD, and MDEA concentration during the first four days. Kinetic modeling employed pseudo-first-order (PFO) and pseudo-second-order (PSO) models, alongside adsorption isotherms (Langmuir, Freundlich, Temkin, Dobinin-Radeshkovich, and Louis), to evaluate MDEA absorption capacity. The Langmuir isotherm best described the absorption characteristics of both plants. Maximum adsorption capacities were recorded for P. australis at 1.181, 2.018, and 3.77 mg/L across the experimental periods, while T. latifolia showed values of 0.779, 1.099, and 2.99 mg/L. Kinetic analysis favored the pseudo-second-order model for both species. Our findings suggest that P. australis is the more effective candidate for phytoremediation of MDEA in wastewater treatment applications.