Nitroimidazole antibiotics have been used to combat anaerobic bacterial and parasitic infections. The detection of nitroimidazole antibiotics (NIABs) has been a research focus in environmental analytical chemistry. This service provides a method for the analysis of nitroimidazoles based on capillary electrophoresis (CE). UiO-66, synthesized using a solvothermal method, is utilized as an adsorbent in the dispersive solid-phase extraction (DSPE) of five different NIABs. The separation and detection of NIABs in environmental water samples are accomplished using the CE diode array detection method.