Background: The purpose of this study was to elucidate the community structure of rhizosphere soil bacteria and endophytic bacteria during the growth of moso bamboo (Phyllostachys edulis) shoots. Methods: This study collected the rhizospheric soil samples, tissue samples of rhizome roots, shoot buds, winter bamboo shoots, spring bamboo shoots, and samples of forest soil. Their metagenomic DNA was extracted, and the bacterial community structure and diversity characteristics were compared and analyzed using high-throughput sequencing technology. Results: These samples enabled the identification of 32 phyla, 52 classes, 121 orders, 251 families, and 593 genera of bacteria. The phyla primarily included Proteobacteria, Acidobacteria, and Cyanobacteria among others. Proteobacteria was the dominant phylum in the samples of bamboo shoots and rhizome roots, whereas Acidobacteria was dominant in the rhizosphere and forest soil samples. The predominant genera of the rhizome root samples were Acidothermus, Bradyrhizobium and Acidobacterium, and the predominant genera of the soil samples were Acidothermus and Acidobacterium. Conclusions: This study preliminarily revealed the regularity between the growth and development of bamboo shoots and the changes in the community structure of rhizosphere soil and endophytic bacteria, which provides insights into the relationship between growth and the bacterial community structure in different stages of bamboo shoots.