Flooding and salinization triggered by storm surges threaten the survival of coastal forests. The forest root zone (top 40 cm of soil) is the most affected by surge flooding. Determining the effect of a storm surge on edaphic conditions is essential to estimate vegetation response. Pre-storm soil hydrology could mitigate or enhance the salinization effect, ultimately determining the resilience of the forest. Here we assess the influence of pre-storm soil water content and salinity on storm surge effects in coastal vegetated areas. A 1D model (HYDRUS-1D) is used to simulate saltwater infiltration from above through the unsaturated zone. Different water content and concentration scenarios, along with scenarios with variable storm surge salt concentration, storm surge height and storm surge flooding duration are considered. In soils characterized by silt and clay, the maximum salinized soil depth increases as water content increases, affecting the top 40 cm of soil, except for clay loam soil, for which only the top 20 cm are salinized. In sandy soils, the salinization process involves the entire soil column. The contribution of water content to salinization varies from 12 % to 30 % along the top 40 cm in fine soils. In fine soils, the storm-surge height also becomes relevant. A study case is presented to support the numerical results. Field data confirm that soil water content controls the salinization of the root zone in clay and silt soils. Overall, we conclude that the root zones of coastal forests with clay and silt soils and low water content are the most at risk during storm surges. These events have the potential to radically change edaphic conditions and affect ecosystems.