Exploring the characteristics of species diversity and phylogenetic diversity of grassland communities is of great significance for revealing the mechanisms of and factors influencing plant community assembly, and thus for formulating strategies to optimize the species composition of grassland communities. This research investigated five types of grassland (desert steppes, floodplain meadows, forest-edge meadows, subalpine meadows, and alpine meadows) in Hejing County on the southern slope of the Tianshan Mountains, and analyzed the differences in species diversity, phylogenetic diversity, and their altitudinal characteristics, as well as the factors influencing these indices among different grassland types. It was found that: 1) The Shannon-Wiener index and phylogenetic diversity (PD) index initially increased and then decreased with elevation, while the Simpson dominance index, Pielou evenness index, net relatedness index (NRI), and nearest taxon index (NTI) showed no obvious elevational trend. 2) Species diversity and phylogenetic diversity were significantly higher in forest-edge meadows and subalpine meadows than in desert steppes, floodplain meadows, and alpine meadows, and the variations in species diversity and phylogenetic diversity mainly originated from grassland types. 3) The Shannon-Wiener index and Pielou evenness index were significantly positively correlated with all phylogenetic diversity indices, while the Simpson dominance index showed no significant correlation with these indices. 4) Species diversity was mainly affected by mean annual relative humidity, and phylogenetic diversity was correlated with latitude, mean annual precipitation, mean annual relative humidity, and mean annual temperature. 5) The mean values of NRI and NTI in the study area were greater than zero, indicating that plant community assembly was dominated by environmental filtering, with the main environmental factors being mean annual relative humidity, mean annual temperature, and mean annual precipitation. Based on the above research results, it is suggested that Hejing County give priority to protecting forest-edge meadows and subalpine meadows with high diversity in grassland ecosystem conservation, while strengthening grazing management and regulation of the desert steppes in the western low-altitude areas.