In this study, we investigated how changes in salinity affect biodiversity and function in 11 typical water bodies in the Altai region. The salinity of the freshwater bodies ranged from 0 to 5, the brackish water salinities ranged from 5 to 20, and the hypersaline environments had salinities > 20. We identified 11 orders, 34 families, and 55 genera in 3061 benthic samples and classified them into 10 traits and 32 categories. Subsequently, we conducted Mantel tests and canonical correlation analysis (CCA) and calculated biodiversity and functional diversity indices for each sampling site. The results indicated that biodiversity and the proportion of functional traits were greater in freshwater environments than in saline environments and decreased gradually with increasing salinity. Noticeable shifts in species distribution were observed in high-salinity environments and were accompanied by specific functional traits such as swimming ability, smaller body sizes, and air-breathing adaptations. The diversity indices revealed that the species were more evenly distributed in high-diversity environments under the influence of salinity. In contrast, in high-salinity environments, only a few species dominated. The results suggested that increasing salinity accelerated the evolution of benthic communities, leading to reduced species diversity and functional homogenization. We recommend enhancing the monitoring of saline water resources and implementing sustainable water resource management to mitigate the impact of salinity stress on aquatic communities in response to climate-induced soil and water salinization.