Abstract Background Weaning stress of piglets causes a huge economic loss to the pig industry. Balance and stability of the intestinal microenvironment is an effective way to reduce the occurance of stress during the weaning process. Clostridium butyricum, as a new microecological preparation, is resistant to high temperature, acid, bile salts and some antibiotics. The aim of present study is to investigate the effects of C. butyricum on the intestinal microbiota and their metabolites in weaned piglets. Results There was no statistical significance in the growth performance and the incidence of diarrhoea among the weaned piglets treated with C. butyricum during 0–21 days experimental period. Analysis of 16S rRNA gene sequencing results showed that the operational taxonomic units (OTUs), abundance-based coverage estimator (ACE) and Chao index of the CB group were found to be significantly increased compared with the NC group (P