Ecological niche modeling of two co-occurring desert species in Saudi Arabia: implications for biodiversity and climate resilience Authors: Dhafer A Al-Bakre Published: 2025 ABSTRACT AbstractGlobal biodiversity is facing unprecedented threats, partially due to climate change, with tropical and arid-zone species among the most vulnerable. In regions like Saudi Arabia, extreme temperatures and limited water availability amplify these risks, particularly for native desert flora. This study aimed to assess the current and future potential distributions of Ochradenus baccatus Delile and its co-occurring species Vachellia tortilis (Forssk.) Galasso & Banfi. Species occurrence data were compiled from field surveys, GBIF, and literature sources, and ecological niche models (ENMs) were developed using MaxEnt. A suite of bioclimatic, edaphic, topographic, and anthropogenic variables was used, and future projections were generated under SSP2-4.5 and SSP5-8.5 climate scenarios. Variable selection was optimized through correlation analysis and Jackknife testing to ensure robust model performance. The MaxEnt models demonstrated high predictive accuracy, with AUC values exceeding 0.90 for both species. Results indicated that temperature seasonality (bio4), minimum temperature of the coldest month (bio6), and precipitation variables (bio12, bio14) were key predictors influencing the distribution of both species. O. baccatus showed higher dependence on edaphic factors such as soil organic carbon and nitrogen, whereas V. tortilis exhibited broader ecological tolerance. High-suitability zones for both species were concentrated along the western mountainous escarpments, particularly in Al Madinah, Makkah, Al Bahah, and Asir. Future projections for the mid-century (2041–2060) and late-century (2061–2080) periods under SSP2-4.5 and SSP5-8.5 scenarios revealed a substantial decline in suitable habitat area for O. baccatus and increasing fragmentation of co-occurrence zones. The species’ high-suitability habitats are projected to shrink and shift toward east-central and northern regions. In contrast, V. tortilis is predicted to retain most of its range along the western escarpment but to experience moderate range contraction and northward redistribution. Consequently, shared high-suitability zones become increasingly isolated, particularly under high-emission scenarios. Hotspot analysis identified climatically stable regions along the southwestern highlands that may serve as future refugia. These areas represent priority zones for conservation planning, habitat restoration, and the establishment of climate-resilient management strategies to preserve Saudi Arabia’s desert biodiversity under changing climatic conditions.Supplementary InformationThe online version contains supplementary material available at 10.1186/s12870-025-07820-z.Keywords: Arid ecosystems, Ecological niche modeling, Ochradenus baccatus, Vachellia tortilis, Climate change, Saudi Arabia Introduction Global biodiversity is undergoing rapid decline as a result of anthropogenic climate change, with tropical and subtropical ecosystems among the most susceptible [1, 2]. Numerous studies suggest that tropical species, despite occurring in biodiversity-rich regions, are particularly vulnerable due to their narrow physiological tolerance to temperature fluctuations [3–5]. The International Union for Conservation of Nature (IUCN) has reported that 37% of evaluated plant species, including many previously classified as non-threatened, have experienced population reductions [6, 7]. While only 0.3% are officially extinct, the rate of local extinctions has tripled in recent years, equaling losses historically observed over seven decades [8, 9]. These alarming trends underscore the urgency of anticipating and mitigating the ecological impacts of ongoing climate change [10]. Within this global framework, Saudi Arabia represents a critical region for ecological investigation [11]. Covering about 2.25 million km2, Saudi Arabia includes coastal plains, mountains, and interior deserts, supporting diverse habitats and plant communities [12]. However, the predominantly arid to hyper-arid climate imposes harsh constraints on biodiversity [13, 14]. Coastal regions benefit from moderate temperatures and higher humidity, while inland areas experience extreme heat and prolonged drought [15]. Although endemism in Saudi Arabia is relatively low at around 2.5% compared to neighboring Yemen and Oman, the country still supports over 200 regional endemics and nearly 600 species considered rare or endangered [16]. Many of these taxa are concentrated in topographically and climatically complex regions such as Al-Baha, where the relationship of elevation, moisture, and temperature fosters floristic richness [17]. However, growing pressures from habitat degradation, overexploitation, invasive species, and climate variability continue to threaten the integrity of these ecosystems [18–20]. Ecological niche modeling (ENM) has become a vital tool for anticipating and mitigating biodiversity loss in arid and hyper-arid regions [21, 22]. By correlating species occurrence data with environmental variables, ENMs estimate habitat suitability across spatial and temporal scales, offering a predictive framework for conservation planning [23, 24]. The rapid advancement of geospatial technologies and modeling algorithms, particularly machine learning approaches such as MaxEnt, has made ENMs increasingly accessible and reliable [25]. Despite their widespread application in various ecosystems, their use in arid and hyper-arid regions remains comparatively limited [26, 27]. This gap is largely due to the logistical challenges of ecological sampling in extreme environments and the scarcity of high-resolution occurrence data [28, 29]. Nonetheless, arid ecosystems harbor uniquely adapted species whose persistence is critical to ecosystem functioning, making such regions a high priority for ecological forecasting [30]. This study focuses on two desert species of ecological significance: Ochradenus baccatus and Vachellia tortilis. O. baccatus Delile, a perennial shrub in the Resedaceae family, is commonly found across arid and semi-arid zones of the Arabian Peninsula [31–33]. It is highly valued for its medicinal properties and ecological functions, including its role as a nurse plant, its tolerance to drought and salinity, and its contribution to food webs via fleshy fruits consumed by animals [34–36]. V. tortilis, a leguminous tree from the Fabaceae family, is another keystone species in desert ecosystems [37, 38]. It inhabits a range of habitats such as wadis, gravel plains, and rocky slopes, and is known for enhancing soil fertility through nitrogen fixation, offering shelter to various organisms, and facilitating the growth of understory vegetation [39, 40]. These two species frequently co-occur in Saudi Arabia’s desert landscapes, where they form ecological associations that can mitigate environmental stress and enhance seedling survival [41–43]. Given projected shifts in temperature and precipitation under different climate change scenarios, the distributions and ecological interactions of these species may be significantly altered in the coming decades [44, 45]. Although several studies have applied ecological niche models to desert flora, limited attention has been given to co-occurring species and their potential interactive responses to changing climatic conditions in arid landscapes. This lack of integrative, multi-species modeling represents a key gap in understanding ecosystem resilience under climate stress [44–46]. Using ENMs, this study aims to assess how the distributions of O. baccatus and V. tortilis are likely to change under future climate projections represented by SSP2-4.5 and SSP5-8.5 scenarios. The objectives of this research are threefold: (1) to predict the potential distributions of O. baccatus and V. tortilis under current and future climatic conditions; (2) to evaluate the extent and spatial dynamics of their zones of co-occurrence; and (3) to identify the most influential environmental variables driving their habitat suitability. By integrating ecological modeling with a conservation-oriented perspective, this study addresses a critical knowledge gap in arid-region biodiversity forecasting and provides insights that can guide habitat restoration, protected area prioritization, and climate adaptation strategies in Saudi Arabia. Methodology Study species and occurrence data collection This study focuses on two ecologically significant desert species, O. baccatus and V. tortilis, which frequently co-occur across the arid and semi-arid zones of the Arabian Peninsula, where O. baccatus often grows as a climber on V. tortilis (Fig. 1). Field surveys were conducted between 2022 and 2024 to record species occurrences, complemented by records from the Global Biodiversity Information Facility (GBIF) and regional floristic literature. A total of 130 unique presence points were compiled for O. baccatus and 138 for V. tortilis after spatial filtering to reduce autocorrelation and ensure independence between sampling points (Fig. 2). Field validation focused on ecologically diverse areas across Saudi Arabia including mountainous terrains, gravel plains, wadis, and sandy basins. Locations with stable and visibly established populations were prioritized to reflect long-term habitat suitability. The plant material was identified by Dr. Dhafer A. Al-Bakre (Department of Biology, Faculty of Science, Tabuk University), and a voucher specimen has been deposited in the herbarium of the same department under the deposition number Ochradenus baccatus 01 and Vachellia tortilis 2. Field photographs of O. baccatus illustrating its morphological characteristics and ecological associations. a Close-up of flowering branches displaying the yellow inflorescences typical of O. baccatus; (b) an isolated individual of O. baccatus growing independently on rocky slopes; (c) and (d) show O. baccatus co-occurring with V. tortilis in arid habitats Geographical distribution of occurrence records for O. baccatus (blue triangles) and V. tortilis (green triangles) across Saudi Arabia Environmental data collection and preprocessing A comprehensive suite of environmental predictors was assembled to model species distributions. Nineteen bioclimatic variables at 30 arc-second (~ 1 km) resolution were obtained from WorldClim version 2.1 (https://www.worldclim.org/data/worldclim21.html), which reflect long-term climatic averages essential for assessing ecological niches (Additional file 1: Table S1). Eleven edaphic variables were derived from Soil Grids at a 0–30 cm depth (https://soilgrids.org/), providing critical information on soil fertility and water retention capacity (Additional file 1: Table S1). Aridity Index data were obtained from Zomer et al. [47], representing regional water availability and drought severity. Elevation was computed from SRTM data using the Google Earth Engine platform. Vegetation productivity was incorporated using the Normalized Difference Vegetation Index (NDVI), calculated from MODIS data as a seasonal average (April–August) from 2001 to 2020. Anthropogenic pressure was quantified using the Human Influence Index (HII) obtained from NASA’s SEDAC database (https://www.earthdata.nasa.gov/data/catalog/sedac-ciesin-sedac-lwp2-hii-geog-2.00). All raster layers were standardized, resampled to a 30-arc-second (~ 1 km) spatial resolution, harmonized to ensure consistent grid alignment, and clipped to the Saudi Arabian boundary using the WGS84 coordinate reference system in ArcGIS 10.8. Pearson’s correlation coefficient (r ≥ 0.8) was used to identify and remove highly correlated environmental variables. In addition to statistical screening, ecological reasoning was applied to ensure that only biologically meaningful predictors influencing species distributions were retained. Consequently, six least correlated and ecologically relevant variables were selected for modeling: temperature seasonality (bio4), minimum temperature of the coldest month (bio6), annual precipitation (bio12), precipitation of the driest month (bio14), soil nitrogen, and soil organic carbon (SOC). Although ecological variables are inherently interrelated in nature, this combined statistical and ecological approach minimized redundancy and enhanced the interpretability of the final model (Fig. 3). Pearson correlation matrix among selected environmental variables used in ecological niche modeling of O. baccatus and V. tortilis. The matrix includes bioclimatic variables (bio4: temperature seasonality, bio6: minimum temperature of coldest month, bio12: annual precipitation, bio14: precipitation of driest month) and edaphic variables (nitrogen content and soil organic carbon) Ecological niche modeling and variable selection MaxEnt (version 3.4.4), a machine learning algorithm widely used for presence-only data, was used for modeling species distributions [48–50]. The ENMeval package in R was used for model tuning by testing multiple combinations of feature classes (L, Q, H, P, T) and regularization multipliers (1–5) [51]. Models were evaluated based on delta AICc, test AUC, and omission rates. A bias file was generated using kernel density estimation to account for spatial autocorrelation in sampling. Environmental variables were stacked and formatted in raster format, and 15,000 background points were used for model training. Each model was run with 10 replicates, 10-fold cross-validation, and 500 maximum iterations using clog-log output. Jackknife tests were used to assess the individual contribution of each variable to the model, and response curves were generated to interpret ecological thresholds [52, 53]. Model evaluation and habitat suitability classification Model performance was evaluated using the Receiver Operating Characteristic (ROC) curve and the corresponding Area Under the Curve (AUC) and AUC ratio metrics. AUC values > 0.9 and AUC ratios > 1.8 were considered to indicate excellent predictive capacity [54]. Partial ROC (pROC) was computed using the pROC package in R [55], and additional statistical validation was performed using the SDMTune package [56]. Habitat suitability maps generated by MaxEnt were reclassified based on natural breakpoints from continuous suitability values to define four categories: unsuitable (p < 0.2), low suitability (0.2–0.4), moderate suitability (0.4–0.6), and high suitability (p > 0.6). Climate change projections and analysis Future projections were modeled using bioclimatic layers from the BCC-CSM2-MR global climate model under two Shared Socioeconomic Pathways (SSP2-4.5 and SSP5-8.5) for the periods 2041–2060 and 2061–2080. These layers were downloaded from WorldClim and downscaled to match the resolution of current data. Future suitability maps were generated by projecting the calibrated models onto future climate scenarios. Raster algebra in ArcGIS was used to overlay species maps and quantify future co-occurrence zones. Results Model performance and predictive power ENM developed for O. baccatus and V. tortilis demonstrated strong predictive accuracy, as indicated by high area under the receiver operating characteristic curve (AUC) values. When modeled independently, O. baccatus achieved an AUC of 0.946 (Fig. 4. top), reflecting excellent discrimination between presence and absence sites. Similarly, V. tortilis exhibited a robust performance with an AUC of 0.909 (Fig. 4. bottom). In both cases, model sensitivity and specificity remained high across a broad range of threshold values, with relatively narrow confidence intervals (shown as mean ± one standard deviation), suggesting consistent performance in predicting species distributions. Receiver operating characteristic (ROC) curves illustrating model performance for O. baccatus and V. tortilis. A ROC curve for O. baccatus (AUC = 0.946). B ROC curve for V. tortilis (AUC = 0.909) Environmental variables contribution The ecological niche model for O. baccatus was primarily driven by climatic variables, with temperature seasonality (bio4) contributing the highest at 54.4%, followed by minimum temperature of the coldest month (bio6) at 22.8%, and annual precipitation (bio12) at 12.6% (Table 1). Among edaphic variables, nitrogen content contributed 4.2% and soil organic carbon (SOC) 1.9%, indicating climate is the dominant driver. Similarly, the model for V. tortilis was also largely influenced by climatic factors, with temperature seasonality (bio4) contributing 42.7%, minimum temperature of the coldest month (bio6) 30.5%, and annual precipitation (bio12) 20.5%. In contrast to O. baccatus, V. tortilis showed a slightly greater reliance on soil organic carbon (3.9%) than nitrogen (1.5%), suggesting that soil carbon availability may have a stronger influence on its spatial pattern. Table 1Percent contribution of climatic and edaphic variables to the ecological niche models of O. baccatus and V. tortilisSpeciesContributionbio4bio6bio12bio14nitrogensoc Ochradenus baccatus Percent Contribution54.422.812.64.14.21.9Permutation Importance6627.40.91.81.92 Vachellia tortilis Percent Contribution42.730.520.50.91.53.9Permutation Importance47.8269.50.82.513.4 Percent contribution of climatic and edaphic variables to the ecological niche models of O. baccatus and V. tortilis The jackknife test of regularized training gain provided further details into the relative importance of environmental variables for each species. For O. baccatus (Fig. 5a), temperature seasonality (bio4) and minimum temperature of the coldest month (bio6) were the most informative predictors when used in isolation, contributing the highest gain among all variables. Notably, the exclusion of bio6 caused a significant drop in training gain, indicating its unique information content not provided by other variables. In contrast, edaphic variables such as nitrogen and soil organic carbon (SOC) had limited standalone predictive power, but their exclusion still caused slight reductions in overall gain, suggesting some complementary influence. In the case of V. tortilis (Fig. 5b), annual precipitation (bio12) emerged as the single most important predictor, producing the highest training gain when used alone and causing a marked reduction in model performance when omitted. Temperature seasonality (bio4) and minimum temperature (bio6) also contributed significantly, albeit to a lesser extent. Unlike O. baccatus, V. tortilis showed a slightly stronger response to SOC, contributing modest gain in isolation and in combination with other variables. Jackknife test of regularized training gain for evaluating the importance of environmental variables in predicting species distributions. a O. baccatus and (b) V. tortilis. Bars represent the training gain for each variable when used in isolation (blue), when omitted from the full model (light blue), and for the full model with all variables included (red) Response of O. baccatus and V. tortilis to environmental variables O. baccatus exhibits a multimodal response to temperature seasonality, with optimal suitability occurring at intermediate values (around 400–500 standard deviation units), and a secondary peak near 800 (Additional file 2: Figure S1). Suitability sharply declines at both very low and very high levels of temperature variation. Habitat suitability increases sharply with bio6, peaking around 7–8 °C, beyond which it declines steadily. The species shows a bimodal response to annual precipitation, with a decline in suitability below ~ 50 mm, and increasing suitability as precipitation rises toward 250–300 mm. The highest predicted presence is in areas receiving over 200 mm of rainfall annually. Suitability peaks when the driest month receives approximately 6–8 mm of precipitation. Suitability declines rapidly below this range, reflecting sensitivity to extreme drought stress. The response to soil nitrogen reveals a sharp increase in suitability with rising nitrogen content, plateauing beyond ~ 200 mg/kg. This indicates that nitrogen availability positively influences establishment. Suitability increases with SOC, peaking near 150 mg/kg, after which it gradually declines. For V. tortilis the model shows a clear unimodal response, with optimal habitat suitability around 400–450 standard deviation units. Beyond this range, particularly above 600, the suitability declines sharply. Suitability increases steadily with bio6, reaching a plateau above 18 °C. A bimodal pattern emerges, with very high suitability at both extremely low (< 20 mm) and high (> 270 mm) precipitation levels. Suitability is lowest in intermediate zones (~ 50–200 mm). Suitability decreases steadily as bio14 increases. Highest suitability is observed when the driest month receives ≤ 1 mm of rainfall. A nonlinear response is evident, with low suitability below ~ 50 mg/kg, followed by a sharp increase and plateau beyond 150–200 mg/kg. The response to SOC is sharply peaked at very low concentrations (< 30 mg/kg), with a steep decline thereafter (Additional file 2: Figure S2). O. baccatus favors moderate temperature seasonality and higher soil fertility, reflecting its adaptation to mesic microhabitats within arid landscapes, whereas V. tortilis demonstrates broader tolerance to extreme temperatures and variable precipitation, indicating greater ecological plasticity across desert environments. Current predicted distribution patterns The species distribution models under current climatic conditions reveal distinct spatial patterns for O. baccatus and V. tortilis, shaped by topographic gradients and climatic zones across Saudi Arabia. For O. baccatus (Fig. 6a), highly suitable habitats are concentrated along the western escarpment, particularly in the mountainous and foothill regions of the Hijaz and Asir ranges, spanning areas from Tabuk through Al Madinah, Makkah, and into the southern provinces of Al Bahah, Abha, and Jizan. Smaller but notable patches of high suitability are also present in central areas near Ar Riyadh and Al Qassim, suggesting tolerance for semi-arid interior basins with favorable microclimates and edaphic conditions. Moderately and low suitable zones extend into adjacent transitional areas, while the eastern lowlands and Rub’ al Khali desert are predominantly unsuitable due to extreme aridity and poor soil fertility. V. tortilis shows a broader ecological amplitude, with high suitability zones covering much of the western coastal strip and escarpment, overlapping significantly with O. baccatus in Tabuk, Al Madinah, Makkah, and Jizan (Fig. 6b). In addition, V. tortilis extends more widely into the interior regions, including extensive suitable patches in Ar Riyadh, Al Qassim, and even parts of Ash Sharqiyah province. This broader distribution reflects its greater ecological plasticity and ability to tolerate both hyper-arid desert conditions and more mesic highlands. Unlike O. baccatus, V. tortilis appears less constrained by edaphic variables and more adapted to a wider range of temperature and precipitation regimes. Predicted current distribution of O. baccatus (a) and V. tortilis (b) across Saudi Arabia based on ecological niche models. Suitability is classified into four categories: unsuitable (gray), low (yellow), moderate (purple), and high (blue) Overlap and topographic influence on co-occurrence The current modeled distributions of O. baccatus and V. tortilis reveal notable spatial overlap primarily within the mountainous and transitional regions of western and central Saudi Arabia. High co-occurrence is concentrated along the Hijaz and Asir mountain ranges, stretching from Tabuk through Al Madinah, Makkah, Al Bahah, to Asir and Jizan, where moderate elevations (1,000–2,000 m), increased precipitation, and edaphically rich conditions support both species. Additional overlapping zones are evident in the Najd Plateau, particularly around Ar Riyadh and Al Qassim, where drainage basins, wadis, and escarpments provide microhabitats with retained moisture and moderate soil fertility. Along the Tihamah coastal plain, near Jeddah and Jizan, patchy co-occurrence reflects transitional ecological conditions, with V. tortilis occupying more open, arid habitats and O. baccatus restricted to protected microsites. While V. tortilis extends further into hyper-arid zones such as the An-Nafud Desert margins and parts of the eastern lowlands, O. baccatus remains absent from these extreme environments, including the Rub’ al Khali. Projected distribution shifts under climate change Model projections under future climate scenarios (SSP2-4.5 and SSP5-8.5 for mid-century 2041–2060 and late-century 2061–2080) reveal substantial shifts in the suitable range of O. baccatus. Under SSP2-4.5, the species’ suitable habitat contracts from the western highlands and Najd Plateau and shifts predominantly toward the east-central regions of Saudi Arabia, particularly around the southern Najd and northern Rub’ al Khali edge, with some persistence in the western escarpments (Fig. 7a and b). Under the more extreme SSP5-8.5 scenario (Fig. 7c and d), there is a more pronounced redistribution, with core suitable zones emerging in northern and northeastern regions, including areas previously unsuitable due to cooler temperatures. The traditional western range (Hijaz and Asir) becomes less suitable, suggesting that increasing temperatures and declining precipitation may exceed the physiological thresholds or edaphic constraints for the species in these regions. Projected future habitat suitability for O. baccatus (a–d) and V. tortilis (e–h) across Saudi Arabia under two climate change scenarios (SSP2-4.5 and SSP5-8.5) for mid-century (2041–2060) and late-century (2061–2080) timeframes. Suitability is categorized into four classes: unsuitable (white), low suitability (yellow), moderate suitability (magenta), and high suitability (blue) In contrast, V. tortilis demonstrates greater resilience and ecological flexibility under future climate projections (Fig. 7e and h). Under SSP2-4.5, its distribution shows a moderate contraction in central interior regions, particularly around Ar Riyadh, while maintaining strongholds along the western escarpment and even expanding along the southern Red Sea coast by the 2080 s (Fig. 7e and f). Under the high-emission SSP5-8.5 pathway, suitable habitats shift further northward and eastward, with high suitability concentrated in northern Najd and the western margins of the An-Nafud Desert (Fig. 7g and h). Despite projected losses in traditional core areas, the species retains wide environmental tolerance, allowing it to adapt to changing precipitation and temperature regimes across multiple zones. Changes in overlapping zones Future projections suggest that while both O. baccatus and V. tortilis will experience range shifts, the extent and geography of their co-occurrence zones will change significantly. Under SSP2-4.5 scenarios (Fig. 7a, b, e and f), overlapping areas progressively shift southeastward, particularly into transition zones between central Najd and the northern Rub’ al Khali, where moderate precipitation and soil fertility may still support co-existence. However, under the more severe SSP5-8.5 scenario (Fig. 7c, d, g and h), overlapping zones become increasingly fragmented, with potential co-occurrence limited to scattered pockets in the north-central regions, especially along ecological corridors that connect the western and northeastern parts of the country. Notably, both species show an apparent loss of overlapping habitat along the Hijaz and Asir ranges, which currently represent their major co-existence zones. The current co-occurrence area between O. baccatus and V. tortilis was estimated at approximately 18,500 km², representing about 22% of the total suitable range for O. baccatus and 15% for V. tortilis. Under the high-emission SSP5-8.5 scenario, this overlap is projected to decline by nearly 40%, indicating increasing spatial fragmentation and reduced potential for ecological interaction. These projected range shifts suggest that climatically stable areas in the western and southwestern highlands, particularly in Al Bahah, Asir, and parts of Al Madinah, are likely to function as future refugia. Such zones should be prioritized for conservation and integrated into long-term habitat management and restoration strategies to support species persistence under changing climatic conditions. Discussion In arid and semi-arid ecosystems, climatic factors such as temperature seasonality and precipitation regimes are key determinants of plant species distribution [56]. This study assessed the ecological responses of O. baccatus and its co-occurring species V. tortilis under current and projected future climate scenarios using ecological niche modeling. The results indicate that temperature seasonality (bio4) and the minimum temperature of the coldest month (bio6) are among the most significant drivers of habitat suitability for both species. This finding aligns with earlier studies suggesting that fluctuations between seasonal temperature extremes impact plant survival and performance, especially in environments where thermal and moisture stress are recurrent [57–60]. In particular, O. baccatus exhibited a strong response to temperature variability, with high suitability observed in regions characterized by moderate temperature amplitude and reliable seasonal precipitation. This is evident in the western highlands of Saudi Arabia, including the Hijaz and Asir mountain ranges, where climatic conditions provide thermal buffering and increased moisture availability. The response curves indicated that O. baccatus attains peak habitat suitability under moderate temperature seasonality, while suitability declines sharply under extreme fluctuations. This pattern supports the climate variability hypothesis, suggesting that greater thermal instability constrains the species’ ecological niche and increases vulnerability to climatic stress [61, 62]. Isothermality, which reflects the ratio between diurnal and annual temperature ranges, also had a role in shaping distribution, although less prominently than temperature seasonality. Its contribution to habitat suitability appeared to influence the broader ecological amplitude of V. tortilis, a species that tolerates wider temperature ranges due to its deep root systems and physiological adaptations [63, 64]. V. tortilis showed high probability of occurrence even in interior desert regions, particularly around Ar Riyadh and Al Qassim, suggesting a greater resilience to thermal extremes compared to O. baccatus [65–67]. Annual precipitation (bio12) and precipitation of the driest month (bio14) were also important in explaining distribution patterns. O. baccatus shows optimal habitat suitability under moderate annual precipitation, indicating its reliance on intermittent moisture availability typical of arid ecosystems. The response pattern reflects an adaptation to episodic rainfall that supports growth and reproduction, consistent with its classification as a drought-tolerant shrub dependent on occasional but sufficient water inputs [68, 69]. Precipitation during the driest month (bio14), which reflects the harshest moisture stress period, was particularly important for V. tortilis, indicating its ability to maintain physiological activity even under minimal rainfall [70–72]. Soil variables also played a substantial role, with nitrogen and soil organic carbon (SOC) positively influencing both species’ habitat suitability. O. baccatus exhibited higher suitability in areas with richer soil organic carbon, reflecting its preference for fertile microhabitats such as alluvial zones and sites enriched by organic matter accumulation beneath canopy vegetation [73, 74]. V. tortilis, in contrast, showed lower dependence on SOC but responded positively to higher nitrogen concentrations, which is consistent with its nitrogen-fixing capacity and role as a fertility-enhancing species in arid landscapes [75, 76]. Under current conditions, the spatial overlap between O. baccatus and V. tortilis is pronounced in the western mountainous corridor, including Tabuk, Al Madinah, Makkah, Al Bahah, and Asir regions. These areas represent ecological hotspots where both species co-occur and possibly interact positively through facilitative mechanisms such as microclimate amelioration and soil enrichment [77, 78]. The presence of these zones is ecologically significant, as they serve as biodiversity reservoirs and potential refugia under future climate change [79, 80]. Future climate projections under SSP2-4.5 and SSP5-8.5 scenarios revealed species-specific shifts in suitable habitat. O. baccatus is expected to experience range contractions in the central and northeastern deserts under high-emission scenarios, while maintaining core populations in climatically buffered highlands [81, 82]. V. tortilis, conversely, may expand its range in moderate-emission scenarios due to its broader ecological plasticity, but also faces potential habitat fragmentation under extreme warming, particularly in northern regions [83]. Hotspot analyses of co-occurrence zones under future conditions showed reduced spatial congruence, indicating that synergistic interactions between the species may be disrupted. These findings highlight the necessity of regionally targeted conservation efforts, particularly in mountainous and mid-elevation zones of the western Arabian Peninsula, which are likely to remain climatically stable and ecologically valuable [84, 85]. Moreover, the high correlation between climatic variables and habitat suitability underscores the importance of integrating climate projections into land management and restoration strategies [86, 87]. The results of this study are consistent with ecological niche modeling research conducted in comparable arid and semi-arid ecosystems across North Africa and the Middle East. Studies in the Sinai region, such as those by Khafaga et al. [88] and Abdelaal et al. [89], demonstrated that temperature and precipitation variability are dominant drivers of plant distribution under climate change, with threatened species like Nepeta septemcrenata and Rosa arabica showing marked range contractions and altitudinal shifts similar to the predicted patterns for Ochradenus baccatus in Saudi Arabia. Likewise, Chérif et al. [90] reported that Balanites aegyptiaca in the Sahel exhibits both potential expansion and contraction zones depending on emission scenarios, reflecting spatial heterogeneity in species’ adaptive responses. Regional-scale assessments, such as Vale et al. [91], further emphasized the importance of high-resolution modeling for capturing fine-scale habitat suitability in marginal desert environments. More recently, Liu et al. [92, 93] found that precipitation seasonality (BIO12, BIO17) remains the primary determinant of species persistence across North African drylands. Shifts in the distribution and co-occurrence of O. baccatus and V. tortilis under changing climate conditions present critical implications for biodiversity conservation and land management in Saudi Arabia. The identification of climatically stable hotspots in the western and southwestern regions, particularly along the Hijaz and Asir mountain ranges, underscores their significance as long-term refugia. These areas should be prioritized for protection and habitat restoration to mitigate the effects of increasing aridity and temperature extremes. Given the ecological importance of these species in soil stabilization, shading, and supporting understory growth, protecting their overlapping zones can provide broad ecosystem benefits. Conservation planning should integrate climate-informed models, promote reforestation with resilient genotypes, and utilize native seed banks and assisted migration to sustain genetic diversity. Aligning these actions with Saudi Vision 2030 goals focused on biodiversity, desert restoration, and sustainable land management, along with expanding protected areas, improving grazing practices, and reducing human pressure, will help ensure the persistence of these keystone desert species under climate change. Limitations While the MaxEnt models provided robust predictions, certain limitations should be noted, including potential sampling bias in occurrence records, the exclusion of dynamic biotic interactions, and the assumption of static environmental variables. These factors may influence the precision of future distribution projections and should be considered when interpreting the results. Conclusion The projected redistribution and fragmentation of suitable habitats for O. baccatus and V. tortilis under future climate scenarios underscore the heightened sensitivity of arid-zone flora to climatic and edaphic perturbations. The marked contraction of ecologically favorable zones, particularly for O. baccatus, alongside diminished areas of co-occurrence, raises concerns about the resilience of mutualistic plant-to-plant interactions fundamental to desert ecosystem stability. Climatically buffered mountainous regions, notably along the western escarpments of Saudi Arabia, emerge as critical refugia warranting immediate conservation prioritization. Priority actions include restoration through native seed banks, assisted migration corridors, and integration of model-based forecasts into national biodiversity frameworks under Saudi Vision 2030. Protecting these habitats will safeguard essential ecosystem services such as soil stabilization, microclimate regulation, and carbon sequestration. Although MaxEnt projections are robust, uncertainties remain due to static environmental assumptions and limited biotic data. Future studies should incorporate field validation, long-term monitoring, and higher-resolution climate models to refine conservation priorities and enhance predictive accuracy. Supplementary Information Supplementary Material 1 Supplementary Material 2 Acknowledgements N/A Authors’ contributions Conceptualization, D.A.A.; Methodology, D.A.A; software, D.A.A.; validation, D.A.A; formal analysis, D.A.A; investigation, D.A.A; resources, D.A.A; Data curation, D.A.A, D.A.A; writing—original draft preparation, D.A.A; writing—review and editing, D.A.A.; visualization, D.A.A; project administration, D.A.A; funding acquisition D.A.A. Funding N/A Data availability Data is contained within the article. Declarations Ethics approval and consent to participate Permission to collect plant specimens was obtained before fieldwork. The landowners granted verbal consent for specimens collected on private land. For specimens collected on public land, authorization was obtained from the appropriate governing authority. Consent for publication Not applicable—this manuscript has no personal data from the authors. Competing interests The authors declare no competing interests. Conflict of interest The authors declare no conflicts of interest. Footnotes Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. References Associated Data Supplementary Materials Supplementary Material 1 Supplementary Material 2 Data Availability Statement Data is contained within the article.