Polyurethane foam functionalized with 8-hydroxyquinoline has been prepared by coupling the foam matrix with 8-hydroxyquinoline (oxine) through an azo spacer. The oxine-bonded foam (Ox PUF) was characterized by use of different tools (UV-Vis spectra, IR spectra, density, and stability). Ox PUF was found to be very suitable for separation and preconcentration of trace metals, e.g. Zn(II), Cd(II), and Hg(II) ions, from wastewater in the pH ranges 2-12, 9-12, and 3-6, respectively. Various conditions influencing the sorption of these metal ions on to Ox PUF were optimized. Extraction of the metal ions was accomplished in 15 to 20 min. Study of the variation of the sorption of the tested metal ions with temperature yielded average values for DeltaH, DeltaS, and DeltaG of 41.99, 158.23, and -5.1 kJ mol(-1), respectively. The capacities of the foam material were 0.27, 0.16, and 0.09 mmol g(-1) for Zn(II), Cd(II), and Hg(II), respectively. Preconcentration factors >50 were achieved (RSD approximately 6.18). The quantitative results were obtained from experiments performed using certified reference materials.