Rhizosphere and endophytic microbiota significantly affect plant growth and development by influencing nutrient uptake and stress tolerance. Herein, root and rhizosphere soil of Acacia species were collected and analyzed to compare the structural differences of the rhizosphere and root endophytic bacterial communities. High-throughput 16S rRNA gene sequencing technology was employed to analyze the rhizosphere and root endophytic bacterial communities. A total of 4249 OTUs were identified following sequence analysis. The rhizosphere soil contained significantly more OTUs than the root soil. Principal component analysis (PCA) and hierarchical cluster analysis indicated that bacterial communities exhibited significant specificity in the rhizosphere and root soil of different Acacia species. The most dominant phylum in the rhizosphere soil was Acidobacteria, followed by Proteobacteria and Actinobacteria, whereas the dominant phylum in the root soil was Proteobacteria, followed by Actinobacteria and Acidobacteria. Among the various Acacia species, specific bacterial communities displayed different abundance. We systematically described the core bacteria in the rhizosphere and root endophytic bacterial communities and predicted their relevant functions. The type and abundance of specific bacteria were correlated with the nutrient absorption and metabolism of the Acacia species. This study addresses the complex host-microbe interactions and explores the rhizosphere and root bacterial community structure of different Acacia species. These results provide new insights into the role of rhizosphere and root endophytic bacterial communities on the growth and reproduction of Acacia, thus informing future efforts towards sustainable development and utilization of Acacia.