Here we report the eco-friendly synthesis of graphene magnetic and non-nonmagnetic nanocomposites, namely GO/Fe3O4 and GO-Ni(OH)2, by employing microwave energy. The nanocomposites were explored for the adsorption of toxic Pb2+ and Cd2+ ions. The characterization techniques of XRD, Raman, FESEM and HRTEM confirmed the structure quality and morphology of both nanocomposites. The adsorption studies were conducted using ICP-OES characterization data. The adsorption of Pb2+ and Cd2+ ions on the surface of the nanocomposites were described well by the Freundlich model. The results of the adsorption studies show that the GO/Fe3O4 nanocomposite shows a high adsorption of Cd2+ ions relative to Pb2+ ions due to the formation of a cadmium complex (CdOH +) in the solution which has a higher stability constant value as compared to the lead complex PbOH +. However, the nonmagnetic GO-Ni(OH)2 nanocomposite shows a higher adsorption of Pb2+ ions due to its high electronegativity relative to Cd2+ ions. It was found that the adsorption varies with the concentration of the metal ions.