Irrigated agricultural lands in arid and semi-arid regions are prone to soil degradation. Remote sensing technology has proven useful for mapping and monitoring the extent of this issue. To accurately discern soil salinity, it is essential to choose appropriate spectral wavelengths. This study evaluated the potential of the land degradation index (LDI) using the visible and near infrared (VNIR) and the short wavelength infrared (SWIR) spectral bands compared to that of soil salinity indices by integrating only the VNIR wavelengths. Landsat-OLI and Sentinel-MSI data, acquired 2weeks apart, were rigorously preprocessed and used. This research was conducted over irrigated agricultural land in Morocco, which is well known for its semi-arid climate and moderately saline soil. Furthermore, a field soil survey was conducted and 42 samples with variable electrical conductivity (EC) were collected for index calibration and validation of the results. The results showed that the visual analysis of the derived maps based on the examined indices exhibited a clear spatial pattern of gradual soil salinity changes extending from the elevated upstream plateau to the downstream of the plain, which limits agricultural activities in the southwestern sector of the study area. The results of this study show that LDI is effective in identifying soil salinity, as indicated by a coefficient of determination (R2) of 0.75 when using Sentinel-MSI and 0.72 with Landsat-OLI. The R2 value of 0.89 and root mean square error (RMSE) of 0.87 dS/m for soil salinity maps generated from LDI with Sentinel-MSI demonstrate high accuracy. In contrast, the R2 value of 0.83 and RMSE of 1.24 dS/m for maps produced from Landsat-OLI indicate lower accuracy. These findings indicate that high-resolution Sentinel-MSI data significantly improved the prediction of salinity-affected soils. Furthermore, this study highlights the benefits of using VNIR and SWIR bands for precise soil salinity mapping.