The key to studying the process of community assembly is determining the species abundance distribution. Nevertheless, the control of species distribution patterns at various spatial scales due to the joint action of niche and neutral processes in arid riparian forest ecosystems is not well understood. Five spatial scales (25 m × 25 m to 500 m × 500 m) were used to detect the three common habitats of the desert riparian forests in the Tarim River Basin: riverside, transitional, and desert margin habitats, which were systematically evaluated using community surveys. A combination of statistical, niche-based, and neutral models was used to fit the species abundance distributions. The findings indicated that both spatial resolution and habitat play a major role in the abundance distributions. As the scales became increasingly fine, the patterns became less homogeneous, with high-abundance clusters at the desert margin. Similarly, the ratio of rare species decreased, whereas that of common and occasional species increased. Model fitting revealed that niche processes prevailed at both the fine and intermediate scales in the riverbank and desert margin habitats and at various scales in the transition zone. In contrast, patterns in the transitional habitat at fine and coarse scales in the desert margin were best understood by neutral processes. Cluster analysis further revealed groups of species that are homogenous in terms of their diverse composition in various habitats, and Populus euphratica is very different in terms of its diversity features from those of its companion plants. This research revealed that ecological niches and neutral processes are alternately dominant in varying environments and scales, indicating that the establishment of riparian forest communities in dry habitats is not regulated by any single effect but instead varies in importance across environmental gradients.