This study aims to investigate the factors affecting the adsorption process of Pb(II) and Cd(II) ions on pectin prepared from seagrass Enhalus acoroides. These factors include pH (2.0-8.0), the degree of esterification (DE), and the initial concentration of the adsorbate. The results show that the optimum adsorption pH was 5-7, and the adsorption ability of pectin increased with decreasing DE value. The adsorption of Cd(II) and Pb(II) onto seagrass pectin followed the Langmuir isotherm model. The maximum adsorption capacities of Pb(II) and Cd(II) onto pectin, calculated using the Langmuir equation, were 119.04 and 59.88 mg/g, respectively. These results suggest that seagrass pectin could be used to develop water treatment systems for removing heavy metals from contaminated water. Further research could focus on optimizing adsorption conditions, scaling up to pilot scale, and eventually applying this technology on an industrial scale.