Heavy metals are principal concomitant pollutants in industrial wastewaters, posing a serious threat to public health and the environment. Herein, we developed a novel strategy to produce a new nanocomposite formed from corn cobs and magnetite as a nanomaterial for the simultaneous removal of (Fe+2) and (Ni+2). The as-prepared nanocomposite was systematically characterized by XRD, FESEM, Mapping, EDX, HRTEM, SADE, Zeta size, and Zeta potential. Compared to corn cob, Fe3O4. The nanocomposite showed a better adsorption performance. The maximum adsorption efficiency of the corn cob, Fe3O4, and nanocomposite, was calculated by atomic analysis to be around 91.84 %, 91.28 %, and 98.51 % respectively at the same conditions. This study indicated nanocomposite could be a favorable biomass-derived adsorbent for the simultaneous removal of heavy metals.