AimIn salt‐affected environments, salinity shapes ecosystem functions and species composition. Apart from salinity, however, we know little about how soil chemical factors affect plant species. We hypothesized that specific ions, most of which contribute to salinity, co‐determine plant niche differentiation. We asked if the importance of ions differs for species with (halophytes) and without (associated species) physiological adaptations to saline soils.LocationCarpatho‐Pannonian region (Central and Eastern Europe).Time period2005–2021.Major taxa studiedVascular plants.MethodsWe recorded species occurrences and collected soil samples in 433 plots in saline habitats. We measured pH, salinity (electrical conductivity), and concentrations of Ca2+, K+, Mg2+, Na+, SO42− Cl−, CO32− and mineral nitrogen (mN) and calculated the sodium adsorption ratio (SAR). For 88 species, we fitted response curves with Huisman–Olff–Fresco (HOF) models. To study ions' effects on species composition and ions' variance, we compared unconstrained and constrained ordinations and performed a principal component analysis. We used random forests to analyse the importance of ions for individual species and created two‐dimensional species niche plots for key ions.ResultsIon concentration niches varied among species and did not necessarily correspond to soil salinity or alkalinity. We frequently observed monotonic, sigmoidal model responses, while skewed unimodal responses were rare. Ions explained a considerable proportion of species compositional variation. Particularly, Na+, SO42−, Cl−, and CO32− contributed to the ions' variance. Na+, followed by SO42−, Cl−, CO32−, Ca2+, Mg2+, and mN, was most important for the occurrence of individual species. Compared to associated species, Na+, SO42−, and mN were significantly less important for halophytes, whereas Cl− and CO32− played a significant role.Main conclusionsWe show that ion composition co‐determines niche differentiation in saline soils, suggesting evolved physiological adaptations in halophytes. Our study calls for incorporating high‐resolution data on soil ion composition in ecological research.