ABSTRACT: Soil salinization is a growing environmental problem caused by both natural and human activities. Excessive salinity in soil suppresses growth, decreases species diversity, and alters the community composition of plants; however, the effect of salinity on soil microbial communities is poorly understood. Here, we characterize the soil microbial community along a natural salinity gradient in Gurbantunggut Desert, Northwestern China. Microbial diversity linearly decreased with increases in salinity, and community dissimilarity significantly increased with salinity differences. Soil salinity showed a strong effect on microbial community dissimilarity, even after controlling for the effects of spatial distance and other environmental variables. Microbial phylotypes (n?=?270) belonging to Halobacteria, Nitriliruptoria, [Rhodothermi], Gammaproteobacteria, and Alphaproteobacteria showed a high-salinity niche preference. Out of nine potential phenotypes predicted by BugBase, oxygen-related phenotypes showed a significant relationship with salinity content. To explore the community assembly processes, we used null models of within-community (nearest-taxon index [NTI]) and between-community (?NTI) phylogenetic composition. NTI showed a significantly negative relationship with salinity, suggesting that the microbial community was less phylogenetically clustered in more-saline soils. ?NTI, the between-community analogue of NTI, showed that deterministic processes have overtaken stochastic processes across all sites, suggesting the importance of environmental filtering in microbial community assembly. Taken together, these results suggest the importance of salinity in soil microbial community composition and assembly processes in a desert ecosystem. IMPORTANCE Belowground microorganisms are indispensable components for nutrient cycling in desert ecosystems, and understanding how they respond to increased salinity is essential for managing and ameliorating salinization. Our sequence-based data revealed that microbial diversity decreased with increasing salinity, and certain salt-tolerant phylotypes and phenotypes showed a positive relationship with salinity. Using a null modeling approach to estimate microbial community assembly processes along a salinity gradient, we found that salinity imposed a strong selection pressure on the microbial community, which resulted in a dominance of deterministic processes. Studying microbial diversity and community assembly processes along salinity gradients is essential in understanding the fundamental ecological processes in desert ecosystems affected by salinization.