This study aims to investigate the performance and mechanism of raw (R-ND) and saponin-modified nano diatomite (M-ND) in the removal of azithromycin from aqueous solutions. Adsorbent characterization was performed using XRF, BET, SEM, DLS and EDX. It was shown that the specific surface area of R-ND was 119.5 m2/g, 14-fold higher than that for raw diatomite, and for M-ND it was 90.1 m2/g. Various adsorption conditions, i.e. adsorbent dosage, pH, initial concentration and contact time were investigated. According to the results, despite reducing the specific surface area by 25%, modification of nano diatomite by saponin markedly enhanced its performance in the removal of azithromycin. The maximum adsorption capacity of R-ND and M-ND in the removal of azithromycin were 68 mg/g and 91.7 mg/g, respectively. FTIR results revealed that azithromycin was adsorbed by O-H groups on the diatomite surface. Weber-Morris intra-particle diffusion (IPD) model suggested that while IPD is not the rate-controlling step in high concentrations of azithromycin, it is the only step that controls the rate of adsorption in low concentrations. In comparison to R-ND, M-ND showed a higher efficiency in the removal of azithromycin and therefore, it can be used as a promising low-cost adsorbent to remove azithromycin from aqueous solutions.