A novel polymer (poly amic hydrazide, PAH) was synthesised via 1:1 condensation reaction between pyromellitic dianhydride and terephthalohydrazide in DMSO. The structure of the polymer was confirmed by FT-IR and NMR. In the second stage, magnetic nanoparticles (magnetite, Fe 3 O 4 ) were prepared by the precipitation method. The prepared Fe 3 O 4 nanoparticles were characterized by TEM, FT-IR and XRD. The TEM images showed that the diameters of the Fe 3 O 4 nanoparticles are about 5?15 nm. In the third stage, a novel nanocomposite was prepared via reaction between Fe 3 O 4 nanoparticles and PAH under ultrasonication assisted conditions. Then the ability of PAH and Fe 3 O 4 @PAH nano composite for removal of heavy metal ions Pb 2+ and Cd 2+ was investigated. The effects of pH, contact time, metal ion concentration, temperature and background electrolytes on the adsorption characteristics of both adsorbents were studied. The maximum adsorption capacities of Pb 2+ and Cd 2+ with PAH adsorbent were 119 and 55 mg g -1 , respectively. The maximum adsorption capacities of Pb 2+ and Cd 2+ with Fe 3 O 4 @PAH adsorbent were 139 and 103 mg g -1 , respectively. In addition, it was found that presence of amide and carboxyl binding sites on the surface of both PAH and Fe 3 O 4 @PAH adsorbents can notably reduce the interferences of the alkaline/earth metal ions. The assumption that the metal ion adsorption is due to complex formation between active sites of the adsorbent and heavy metal ions was further confirmed by investigating the adsorption isotherms and kinetics. The desorption experiments under batch conditions revealed that the both adsorbents are reusable adsorbent for practical removal of heavy metal ions. The practical ability of the prepared adsorbents for removal of heavy metal ions from industrial samples was evaluted using different industrial wastewaters from Moham industrial complex and Hessam paint manufacturing company. The obtained results showed that PAH polymer and Fe 3 O 4 @PAH nanocomposite can be used for removal of heavy metal ions from industrial wastes.