Understanding the mechanisms that control seasonal groundwater recharge at local and intermediate scales is critical for understanding contaminant transport. The recharge mechanism of seasonal precipitation and irrigation, companied with legacy wastewater in porewater in alluvial aquifer were complicated due to the seasonal variation of multiple recharge sources. In this study, a long-term wastewater leakage and irrigation region along the Tanghe Wastewater Reservoir (TWR) in the alluvial plain area of North China Plain to investigate the recharge mechanism from unsaturated zone to the upper shallow groundwater affected by multiple water sources. Water chemical ions and stable isotopes of water (2H and 18O) of 30 m deep sediment profiles and groundwater boreholes were used to trace the recharge processes. The porewater stable isotopes of the sediment profiles revealed vertical recharge rates ranging from 0.63 to 1.09 m/year for the layered unsaturated zone with silt and silty clay. Due to the matrix flow through unsaturated zone, the legacy wastewater in the unsaturated zone affected the variation of groundwater quality in long term. However, fast flow (i.e., preferential or lateral flow) occurred in sand layers of alluvial aquifers lead to significant precipitation contributions (44 to 61 %) to the upper shallow groundwater (USGW) recharge, resulting in the seasonal variation of stable isotopes and water chemical ions. Affected by the fast flow with seasonal variations and matrix flow with legacy wastewater in the unsaturated zone, the δ2H and δ18O relationship of the USGW showed two types of hysteresis loops in the dual isotope space: 1) groundwater in regions affected by the TWR wastewater leakage shows narrow loops and a nearly straight line with end-members of precipitation that recharged to groundwater by fast flow, and evaporated porewater plotting along the TWR evaporation line; and 2) groundwater in irrigated farmlands with low and high irrigation amounts and intense evaporation shows stronger hysteresis with loops overlapping with shallow porewater, suggesting the impact of legacy wastewater of the unsaturated zone on groundwater. The residual pollutants in soil and the type of fast flow determine the different seasonal variation of groundwater quality. Preferential flow in alluvial aquifer regions can increase the proportion of seasonal recharge from precipitation, resulting in the rapid introduction of contaminants from surface or shallow soils into the alluvial aquifer.