Resumen: Spain is the world’s leading producer of black truffle Tuber melanosporum Vittad. because of a distinct combination of edaphic properties and climatic conditions in the growing season. Relatively cold winters and moderate summer precipitation are key for a productive harvest; however, climate projections foresee a spatially diverse warming, favoring extreme temperatures and drought conditions which will affect the future distribution of the species. We used a combination of 3 machine-learning-based species distribution modeling methods—maxent, random forest, and boosted regression trees—to estimate the current and future habitat potentiality in mainland Spain, based on historical observations and a collection of environmental variables previously demonstrated as critical parameters for the modeling of black truffle presence. Results showed a notable change in the distribution under 2 future scenarios, with a total loss of between 22 and 32% of the current habitat, especially in zones with hot temperatures and low precipitation. This was partially compensated with the colonization of new areas (+25%) in colder and more humid climates. Overall, the greatest changes in future distribution scenarios were associated with maximum summer temperatures, summer precipitation, elevation, and edaphic pH. While significant differences were found in the contribution of the predictors to the 3 models, the spatial distribution results were similar. By illustrating the climate-driven redistribution of a high-value crop, our findings underscore the importance of integrating ecological modeling into agricultural policy and land-use planning to ensure long-term resilience of rural economies. Idioma: Inglés DOI: 10.3354/cr01757 Año: 2025 Publicado en: CLIMATE RESEARCH 95 (2025), 27-41 ISSN: 0936-577X Financiación: info:eu-repo/grantAgreement/ES/DGA/S74-23R Financiación: info:eu-repo/grantAgreement/ES/MICINN/RYC2021-034330-I Tipo y forma: Article (Published version) Área (Departamento): Área Geografía Física (Dpto. Geograf. Ordenac.Territ.) Área (Departamento): Área Análisis Geográfico Regi. (Dpto. Geograf. Ordenac.Territ.)