Background: The seed dimorphism was thought to be a bet-hedging strategy, which assists plants to survive in the disturbed environment and has been widely studied for their ecological adaptation mechanism. Many studies showed that seed-associated microorganisms play an important role in enhancing plant fitness, but information regarding endophytic bacteria associated with dimorphic seeds is limited. This study explores the influence of seed coat structure and seed phytochemical properties on the community composition and diversity of endophytic bacteria of dimorphic seeds of Suaeda glauca. In the present study, we firstly used 16S rRNA high-throughput gene sequencing method to compare the bacterial diversity and community composition between brown and black seeds of Suaeda glauca. Results: A significant difference was observed in seed coat structure and phytochemical properties between brown and black seeds of S. glauca. Total 9 phyla, 13 classes, 31 orders, 53 families, 102 genera were identified in the dimorphic seeds. The dominant phyla were Proteobacteria, Firmicutes, and Actinobacteria. The results showed that seed dimorphism had little impact on the diversity and richness of endophytic bacterial communities but significantly differs in the relative abundance of the bacterial community between brown and black seeds. At the phylum level, Actinobacteria tend to be enriched significantly in brown seeds. At the genus level, Rhodococcus, Ralstonia, Pelomonas and Bradyrhizobium tend to be enriched significantly in brown seeds, while Marinilactibacillus was mainly found in black seeds. Besides, brown seeds harbored a large number of bacteria with plant-growth-promoting traits, whereas black seeds presented bacteria with enzyme activities (i.e. pectinase, cellulolytic and xylanolytic activities). Conclusion: The endophytic bacterial community compositions were significantly different between dimorphic seeds of Suaeda glauca, and play an important role in the ecological adaptation of dimorphic seeds by performing different bacterial function roles. The endophytic bacterial communities of the dimorphic seeds might be influenced mainly by the seed coat structure and partly by seed phytochemical characteristics. These findings provide valuable information for better understanding of the ecological adaptation strategy of dimorphic seeds in the disturbed environment.