BACKGROUND AND PURPOSE Chicken colibacillosis, caused by avian Escherichia coli (APEC), results in huge economic losses to the poultry industry. Baicalin exerts protective effects during the development of colibacillosis. In this study, we mainly explored the mechanism of this protective effects with regard to gut microbiota. EXPERIMENTAL APPROACH The chicken colibacillosis model was established by intratracheal instillation of APEC. The gut microbiota-depleted chicken model was established with broad-spectrum antibiotics. Viscera index measurement and Haematoxylin and eosin stain were applied to assess histological changes of tissues. ELISA were used to measure the cytokines and Quantitative-PCR were used to evaluate the gene expression. The gut microbiota and its metabolite were detected by 16srDNA and ultrahigh-performance liquid chromatography (LC-MS). KEY RESULTS Depletion of gut microbiota exacerbated the tissue damage and weakened the protective effects of baicalin during APEC-induced chicken colibacillosis while pretreatment of baicalin reduced these changes and inflammatory response induced by APEC. Moreover, APEC infection led to dysbiosis of gut microbiota and its metabolites. However, the pretreatment of baicalin remodeled the gut microbiota featured with increased abundance of Intestinimonas and its associated with beneficial metabolites. CONCLUSIONS Gut microbiota played a protective role in the prevention of chicken colibacillosis and the pharmacological action of baicalin. The altered specific gut bacterial and/or metabolites may be served as indicators to predict the occurrence and prognosis of chicken colibacillosis. Our findings may provide a paradigm for the mechanistic studies of compounds and aid the exploration of the mechanisms and pathways underlying the function of herbal medicines.