In this study, the adsorption capability of MgO nanorods for the quick and effective elimination of Cu(II) and Pb(II) heavy metals from wastewater was examined. The MgO nanorods were produced via simple coprecipitation process. Various characterization techniques were used to investigate the morphological and chemical properties of the as-prepared nanomaterial. Moreover, the influences of initial heavy-metal ion concentration, pH, and contact time were investigated to evaluate the removal efficiency of the nanomaterials. The adsorption process followed pseudo-second order and Langmuir adsorption isotherm models, according to kinetics and isotherm investigations, respectively. MgO nanoparticles exhibited a high adsorption capacity for Cu(II) (234.34 mg/g) and Pb(II) (221.26 mg/g). The existence of interfering ions in the aqueous solution leads to a decrease in the adsorption capacity. Surface complexation was determined as the key contributor to the adsorption of Cu(II) and Pb(II) heavy-metal ions onto MgO nanorods. Notably, regeneration experiments demonstrate the potential applicability of MgO nanorods for the elimination of Pb(II) and Cu(II) from aqueous solution.