Agroforestry is increasingly viewed as an effective means of maintaining or even increasing crop and tree productivity under climate change while promoting other ecosystem functions and services. This study focused on soil biochemical properties and resilience following disturbance within agroforestry and conventional agricultural systems and aimed to determine whether soil differences in terms of these biochemical properties and resilience would subsequently affect crop productivity under extreme soil water conditions. Two research sites that had been established on agricultural land were selected for this study. The first site included an 18-year-old windbreak, while the second site consisted in an 8-year-old tree-based intercropping system. In each site, soil samples were used for the determination of soil nutrient availability, microbial dynamics and microbial resilience to different wetting drying perturbations and for a greenhouse pot experiment with wheat. Drying and flooding were selected as water stress treatments and compared to a control. These treatments were initiated at the beginning of the wheat anthesis period and maintained over 10 days. Trees contributed to increase soil nutrient pools, as evidenced by the higher extractable-P (both sites), and the higher total N and mineralizable N (tree-based intercropping site) found in the agroforestry compared to the conventional agricultural system. Metabolic quotient (qCO(2)) was lower in the agroforestry than in the conventional agricultural system, suggesting higher microbial substrate use efficiency in agroforestry systems. Microbial resilience was higher in the agroforestry soils compared to soils from the conventional agricultural system (windbreak site only). At the windbreak site, wheat growing in soils from agroforestry system exhibited higher aboveground biomass and number of grains per spike than in conventional agricultural system soils in the three water stress treatments. At the tree-based intercropping site, higher wheat biomass, grain yield and number of grains per spike were observed in agroforestry than in conventional agricultural system soils, but in the drought treatment only. Drought (windbreak site) and flooding (both sites) treatments significantly reduced wheat yield and 1000-grain weight in both types of system. Relationships between soil biochemical properties and soil microbial resilience or wheat productivity were strongly dependent on site. This study suggests that agroforestry systems may have a positive effect on soil biochemical properties and microbial resilience, which could operate positively on crop productivity and tolerance to severe water stress.