The immunosuppressive effects of antibiotics and the potential associations with the intestinal microbiota of the host have been increasingly recognized in recent years. However, the detailed underlying mechanisms of immune interference of antibiotics in environmental organisms remain unclear, particularly at the early life stage of high sensitivity. To better understand the gut microbiome and immune function interactions, the vertebrate model, zebrafish, was treated with environmentally relevant concentrations of a frequently detected antibiotic, enrofloxacin (ENR), ranging from 0.01 to 100 μg/L. 16S ribosomal RNA sequencing indicated diminished diversity, richness, and evenness of intestinal flora following ENR treatment. Twenty-two taxa of gut bacteria including Rickettsiales, Pseudomonadales, and Flavobacteriales were significantly correlated with immunosuppressive biomarkers, including a significant decrease in the abundance of macrophages and neutrophils. To validate the immunomodulatory effects due to altered intestinal microbial populations, zebrafish reared under sterile and non-sterile husbandry conditions were compared after ENR treatment. A significant inhibitory effect was induced by ENR treatment under non-sterile conditions, while the number of macrophages and neutrophils, as well as biomarkers of immunosuppressive effects, were significantly salved in zebrafish under sterile conditions, confirming for the first time that immunosuppression by ENR was closely mediated through alterations of the intestinal microbiome in fish.