In this work, the thermally stable magnetic poly(urethane-imide) nanocomposite (â-CDPUIm-MNPs (9)) was prepared by reaction of â-cyclohexatriene with diisocyante (5) as a new synthetic cross linker agent and its adsorption behavior for removal of heavy metal ions from water was examined and compared with bare poly(urethane-imide). This poly(urethane-imide) based nanocomposite was employed for the removal of Pb(II) and Cd(II) metals from the waste water for the first time and it has proved to have an excellent efficiency probably due to the presence of nitrogen and oxygen atoms in the imide ring. â-CDPUIm-MNPs (9) displayed highly effective adsorption performance to lead and cadmium and showed maximum adsorptions during 20 min. For optimization of lead and cadmium ions adsorption, the effects of different factors like pH, contact time, and initial amounts of Pb(II) and Cd(II) ions were studied. Results showed that pH has a great influence on the adsorption behavior and also maximum adsorption capacity was obtained at pH 7. Examination of the isotherm and adsorption kinetics showed that equilibrium adsorptions and kinetic are well-modeled by applying Langmuir isotherm model and pseudo-second-order kinetics, respectively. The maximum adsorption capacities of â-CDPUIm-MNPs (9) for Pb(II) and Cd(II) ions based on Langmuir isotherm calculation were 344.830 and 303.030 mg/g, respectively. Regenerated â-CDPUIm-MNPs (9) were used as adsorbent and show high adsorption capacity without any reductions of magnetic intensity and aggregation of adsorbents under five repeating cycles.