Metal-organic frameworks (MOFs) are used as novel adsorption materials owing to their large surface area and tunable pore size. However, the lack of selectivity considerably limits their application. Consequently, designing functionalized MOFs with specific recognition abilities is essential for enhancing their adsorption performance. Herein, we synthesized a functionalized NH 2 -UiO-66 composite modified by molecularly imprinted polymers (MIP@NH 2 -UiO-66) via a one-step polymerization process in which NH 2 -UiO-66 and MIP were formed simultaneously. Results demonstrate that MIP@NH 2 -UiO-66 effectively recognized sulfamethoxazole (SMX) in complex matrices. The adsorption equilibrium was reached in only 30 min, and this fast SMX adsorption on MIP@NH 2 -UiO-66 was described by the Avrami kinetic model, which indicates a spontaneous and exothermic adsorption process. Within the pH range of 3.0-10.0, MIP@NH 2 -UiO-66 exhibited an optimal binding capacity for SMX, and the maximum adsorption of SMX was 68.36 mg g -1 at 25°C, which exceeded those of existing adsorption materials (< 60.10 mg g -1 ). Additionally, MIP@NH 2 -UiO-66 was regenerated for ∼17 cycles compared to less than eight cycles for the other adsorbents. MIP@NH 2 -UiO-66 effectively removed 90.58%-99.60% of SMX from river water, rainwater, soil, sediment, chicken, pork, and milk samples, with a relative standard deviation of less than 4.43%. The superior adsorption of SMX on MIP@NH 2 -UiO-66 was primarily driven by the synergistic effects of the imprinting sites, hydrogen bonding, and electrostatic forces. The one-step polymerization method substantially simplified the synthesis process and reduced the costs, which are promising factors for the synthesis of MOFs with high selectivity.