Background. The intestinal microbiota plays essential functions that affect piglet health at the weaning stage. However, our understanding of the succession of bacterial intestinal communities during weaning and Nursery Periods of pig is limited. Methods. To better understand this, we performed 16S rDNA gene sequencing of the contents of four distinct intestinal segments [duodenum (D), jejunum (J), ileum (I), and cecum (C)] in six Chinese Shanxi Black pigs at day 25 (B25 group; i.e., weaning) and day 70 (B70 group; i.e., nursery). Results. We found that the dominant phyla are Proteobacteria, Bacteroidetes, and Firmicutes. In addition, the dominant genera were Acinetobacter, Prevotella, Streptococcus, and SMB53 (Clostridiaceae). The microbiota in the B25 group across segments were significantly different from that in the corresponding segments in the B70 group. In addition, the distinct segments in the B70 group presented a continuum consisting of compartmentalized architecture whereas the distinct segments in B25 group were relatively similar. The predicted molecular function analysis revealed higher enrichments in associated metabolisms as well as stress-induced functions in the B25 group. Conclusions. This study provides insights into the succession of intestinal microbiota in Chinese Shanxi Black pigs before and after weaning, and provides reference for improving the intestinal development of piglets.