A pyrrole-based conductive polymer was prepared and applied as new sorbent for on-line solid-phase extraction (SPE) of phenol and chlorophenols from water samples. Polypyrrole (PPy) was synthesized by chemical oxidation of the monomer in non-aqueous solution. The efficiency of this polymer for extraction of phenol and chlorophenols was evaluated using 35 mg of PPy as the sorbent in an on-line SPE system coupled to reversed-phase liquid chromatography with UV detection. The mobile phase were mixture of phosphate buffer–acetonitrile and compounds were eluted by the mobile phase using a six-port switching valve. High volumes of water, up to 160 ml, could be preconcentrated without the loss of phenols, except for the more polar ones. The R.S.D. for a river water sample spiked with phenol and chlorophenols at sub-ppb level was lower than 7% ( n=5) and detection limits of 15–100 and 35–150 ng l −1 for tap and river water were obtained, respectively.