The correlation between the amount of organic carbon (OC) and sulfur (S) in sediments has been widely used as a paleosalinity indicator to distinguish between marine and freshwater environments. However, whether the ratio of total OC to total S (TOC/TS) can be used to identify unsteady or dynamic marine environments across sedimentary strata is still contended. An HZW1907 sediment core of 80 m in length was successfully collected in the middle of Hangzhou Bay (HZB), serving as one of the few boreholes that are crucial for the study of geologic and geo-environment changes in the coastal regions of eastern China since the Last Glacial Maximum (LGM). Total OC (TOC), stable carbon isotope, and TS of 82 subsamples from the HZW1907 core were analyzed to reconstruct the history of the shallow water biological pump and sulfur preservation record in the bay since the Late Pleistocene. Our results indicate that the samples had low concentrations of TOC (0.21%) and total nitrogen (TN) (0.02%), high mass ratio of TOC/TN (10.8), low δ13C (−24.9‰), low TS content (0.06%), and a high ratio of TOC/TS (9.1) from 33.6 ka BP to 12.3 ka BP, implying that freshwater organic matter (OM), algae, and C3 plant fragments were the main sources of OM in a relatively cold environment. The abundances of TOC, TN, and TS increased to 0.56%, 0.07%, and 0.4%, respectively, while δ13C (−23.9‰) increased and TOC/TS (2.7) decreased in the Holocene sediments, suggesting that seawater began to influence the composition of the sediments of HZB. Climate warming, which is likely to have impacted the results, was experienced from 12.3 ka BP. An OC isotope mixing model indicated that since the Mid-late Holocene, more than 70% of riverine OM accounted for the total OM. The TOC/TS ratio was identified as an effective indicator of seawater intrusion, with C/S ratios of 1–6 being considered to indicate a “sea–land transitional zone” sedimentary environment, a C/S >6 indicating freshwater, and a C/S<1 indicating normal marine facies. These findings provide crucial evidence for using TOC/TS to distinguish freshwater from marine environments and enhance our understanding of past climate changes. Therefore, these geochemical indicators can be used in conjunction with other sedimentary records to obtain accurate results about sedimentary evolution.