To overcome the limitations of single-component photocatalytic materials, including low carrier separation efficiency, narrow light absorption range, and limited functionality, this study utilized precise interface engineering to construct a double S-scheme g-C3N4/TiO2 (CNT550) heterojunction composite photocatalyst through a two-step hydrothermal and high-temperature calcination approach. Characterization techniques such as X-ray diffraction (XRD), scanning electron microscopy (SEM), Fourier transform infrared spectroscopy (FT–IR), and high-resolution transmission electron microscopy (HR–TEM) verified the formation of intimate interfacial contact between g-C3N4 and both anatase and rutile phases of TiO2. This interfacial structure effectively promotes the separation and migration of photogenerated charge carriers. The dual-functional performance of the material was systematically evaluated for photocatalytic tetracycline (TC) degradation and hydrogen evolution via water splitting. Results demonstrated that under ultraviolet, visible, and simulated sunlight irradiation for 150 min, 300 min, and 300 min, respectively, CNT550 achieved TC degradation rates of 99.6%, 88.0%, and 82.9%, representing significant enhancement compared to g-C3N4 and TiO2. Meanwhile, the hydrogen evolution rate of CNT550 reached 447.8 μmol·h− 1·g− 1, which is 3.25 times and 3.58 times higher than that of g-C3N4 and TiO2, respectively. Furthermore, advanced characterization techniques including in situ X-ray photoelectron spectroscopy (XPS), Kelvin probe force microscopy (KPFM), and surface photovoltage spectroscopy (SPV), combined with density functional theory (DFT) calculations, systematically confirmed that the charge transfer and separation in the CNT550 composite follow a double S-scheme mechanism. Mechanism analysis further reveals that the double S-scheme heterojunction not only broadens the light absorption range but also enables efficient interfacial charge transfer and rapid separation of photogenerated carriers, which serves as the key factor contributing to the significantly enhanced photocatalytic activity. This work provides valuable insights and guidance for designing high-performance bifunctional photocatalytic materials. This study provides important theoretical guidance and practical pathways for the design of highly efficient double S-scheme heterojunction photocatalysts, offering valuable insights for the development of high-performance bifunctional photocatalytic materials.