BackgroundMass distributions of oral azithromycin have long been used to eliminate trachoma, and they are now being proposed to reduce childhood mortality. The observed benefit appears to be augmented with each additional treatment, suggesting a possible community-level effect. Here, we assess whether 2 biannual mass treatments of preschool children affect the community’s gut microbiome at 6 months after the last distribution.MethodsIn this cluster-randomized controlled trial, children aged 1–60 months in the Dossa region of Niger were randomized at the village level to receive a single dose of azithromycin or placebo every 6 months. Fecal samples were collected 6 months after the second treatment for metagenomic deep sequencing. The prespecified primary outcome was the Euclidean PERMANOVA of the gut microbiome, or effectively the distance between the genus-level centroid at the community level, with the secondary outcome being the Simpson’s α diversity.ResultsIn the azithromycin arm, the gut microbial structures were significantly different than in the placebo arm (Euclidean PERMANOVA, P < .001). Further, the diversity of the gut microbiome in the azithromycin arm was significantly lower than in the placebo arm (inverse Simpson’s index, P = .005).ConclusionsTwo mass azithromycin administrations, 6 months apart, in preschool children led to long-term alterations of the gut microbiome structure and community diversity. Here, long-term microbial alterations in the community did not imply disease but were associated with an improvement in childhood mortality.Clinical Trials RegistrationNCT02048007.