Stellera chamaejasme (S. chamaejasme) is an important medicinal plant with heat-clearing, detoxifying, swelling and anti-inflammatory effects. At the same time, it is also one of the iconic plants of natural grassland degradation in northwest China, playing a key role in the invasion process. Plant endophytes live in healthy plant tissues and can synthesize substances needed for plant growth, induce disease resistance in host plants, and enhance plant resistance to environmental stress. Therefore, studying the root endophytes of S. chamaejasme is of great significance for mining beneficial microbial resources and biological prevention and control of S. chamaejasme. This study used Illumina MiSeq high-throughput sequencing technology to analyze the composition and diversity of endophytes in the roots of S. chamaejasme in different alpine grasslands (BGC, NMC and XGYZ) in Tibet. Research results show that the main phylum of endophytic fungi in the roots of S. chamaejasme in different regions is Ascomycota, and the main phyla of endophytic bacteria are Actinobacteria, Proteobacteria and Firmicutes (Bacteroidota). Overall, the endophyte diversity of the NMC samples was significantly higher than that of the other two sample sites. Principal coordinate analysis (PCoA) and permutational multivariate analysis of variance (PERMANOVA) results showed significant differences in the composition of endophytic bacterial and fungal communities among BGC, NMC and XGYZ samples. Co-occurrence network analysis of endophytes showed that there were positive correlations between fungi and some negative correlations between bacteria, and the co-occurrence network of bacteria was more complex than that of fungi. In short, this study provides a vital reference for further exploring and utilizing the endophyte resources of S. chamaejasme and an in-depth understanding of the ecological functions of S. chamaejasme endophytes.