A new synthesized copolymer based on N-vinylimidazole-divinylbenzene (VIm-DVB) was tested as a sorbent for the solid-phase extraction (SPE) of polar analytes. In the on-line SPE, this synthesized sorbent enabled 100 ml of sample to be preconcentrated with recoveries as high as 80% for oxamyl, phenol (Ph) and derivates, bentazone and (4-chloro-2-methylphenoxy)acetic acid (MCPA). For the off-line SPE, 1000 ml of sample was extracted and recoveries were higher than 92% for all compounds with the exception of oxamyl (83%) and methomyl (78%). The VIm-DVB sorbent gives better recoveries than the previously synthesized 4-vinylpyridine-divinylbenzene (VP-DVB) resin and similar to such highly crosslinked commercial sorbents as LiChrolut EN or Oasis HLB. Real water samples were used to validate the on-line SPE method. Linearity was good and detection limits were between 0.1 and 0.2 microg l(-1).