Sustainable development goals require evaluating vulnerabilities and examining natural and climatic hazards for effective planning that reduces their impact on economic, social, and developmental efforts. Key hazards like floods, landslides, wildfires, and droughts have significantly affected terrestrial ecosystems and human societies, emphasizing the importance of comprehending these hazards. This study aimed to predict and spatially map multi-hazard, identifying historical and potential risks to inform sustainable development and construction programs that mitigate risks and promote resilience. A 34-year drought magnitude map was generated using long-term data, and ensemble and individual machine learning techniques were used to produce maps of flood, landslide, and wildfire hazards in a northwest region of Iran. Results demonstrated that ensemble learning models outperformed individual models, with the top-performing models being the weighted average (WA) of the two best models, random forest, extreme gradient boosting, WA models with over 80% accuracy, and WA incorporating all models, respectively. The CART model performed best among individual models. Variable importance analysis revealed that slope and precipitation were crucial factors for identifying high-hazard landslide areas, distance from waterways, vegetation cover, and topographic humidity index emerged as the most crucial factor for identifying flood hazard areas, while vegetation, rainfall, and proximity to roads significantly impacted wildfire hazard. The multi-hazard map produced by our study indicated that about 30% of the study area was highly and very highly susceptible to floods, landslides, wildfires, and droughts and the hazards mitigation efforts should be primarily directed to these specific portions of the study area. Our study underscored the importance of integrating long-term data and machine learning techniques in multi-hazard prediction and mapping, ultimately guiding mitigation efforts and promoting resilience in the face of natural and climatic hazards.