Introduction: Estuarine wetlands are hotspots of nutrient cycling but are increasingly affected by seawater intrusion and tidal hydrological disturbance. How water–salinity gradients regulate soil phosphorus fractions and their underlying pathways remains insufficiently resolved. Methods: We conducted a controlled mesocosm incubation using surface soils from freshwater and salt-marsh wetlands in the Yellow River Estuary. Freshwater wetland soils were exposed to salinity levels of 0, 5, 10 and 15‰ and planted with Phragmites australis, while salt-marsh soils were maintained at 28‰ and planted with Suaeda salsa. For each salinity treatment, three water-level regimes were imposed: flooded (+10 cm), non-flooded (−10 cm), and fluctuating (−10 to +10 cm). Soil and plant samples were collected after 1, 8 and 16 weeks to determine phosphorus fractions, soil physicochemical properties, microbial communities and plant biomass. Random forest and PLS-SEM were used to identify key drivers and pathways. Results: Salinity significantly altered total phosphorus, organic phosphorus, inorganic phosphorus, Ca-bound phosphorus and Fe/Al-bound phosphorus. Increasing salinity generally reduced total phosphorus, inorganic phosphorus and Ca-bound phosphorus, whereas Fe/Al-bound phosphorus was higher under salt-marsh or high-salinity conditions. Water level had a significant effect mainly on organic phosphorus, which followed the order flooded > fluctuating > non-flooded. Random forest models explained 51.6%, 97.1%, 95.6% and 56.7% of the variation in total, organic, inorganic and Ca-bound phosphorus, respectively, identifying soil water content, pH, total organic carbon and microbial abundance as key predictors. Conclusions: Water–salinity disturbance negatively regulates soil phosphorus fractions mainly through microbial-mediated pathways, indicating that seawater intrusion and tidal hydrological alteration may reshape phosphorus cycling and nutrient stability in estuarine wetlands.