A carbazolic conjugated microporous polymer (designated as CZ-CMP) was successfully synthesized through Scholl reaction of carbazole with 1, 3, 5-triphenylbenzene. The CZ-CMP was characterized by FT-IR spectrum, X-ray diffraction, nitrogen sorption isotherms, and scanning electron microscopy. The characterization results showed that the CZ-CMP had a spherical structure with high surface area and good microporosity. Its adsorption performance was investigated by applying it as an adsorbent for the solid phase extraction (SPE) of phenyl urea herbicides (PUHs) (metoxuron, chlortoluron, isoproturon, monolinuron and buturon) from tea drinks samples prior to high performance liquid chromatographic detection. The CZ-CMP displayed high extraction efficiency for the PUHs, and the primary factors affecting the SPE efficiency including the type and volume of the eluent, sample solution pH, sample loading rate and sample volume were optimized. Under the optimized conditions, a good linear response for the analytes was observed in the range of 0.10–80.0 ng mL−1 with correlation coefficients (r) from 0.9937 to 0.9997. The limits of detection were measured to be in the range of 0.02–0.30 ng mL−1 and the limits of quantitation were in the range of 0.06–0.9 ng mL−1. The developed method was successfully applied for the determination of the five PUHs in four different kinds of drinks with the method recoveries between 83.7% and 118% and the relative standard deviations between 1.0% and 10%. Besides, the application potential of the CZ-CMP was evaluated by using it to extract different types of the organic compounds including some phthalate eaters (PAEs), chlorophenol (CPs), nitroimidazoles and polycyclic aromatic hydrocarbons (PAHs). The results indicated that the CZ-CMP had strong adsorption ability for the compounds with more hydrogen bonding sites and moderate hydrophobicity.