A one-step calcination method was employed to fabricate a new TiO2/g-C3N4(TCN) composite catalyst. The therein TiO2 nanoparticles with good dispersion were synthesized through a sol-gel method and followed by additional heat treatment. The ultra-thin and flat g-C3N4(CN) nanosheets were synthesized by calcining a mixture of urea and melamine. The obtained TCN exhibited significantly excellent performance, especially when 3 wt% Pt was added and lactic acid (HL) was used as a sacrificial agent, achieving a rate of 32.5 mmol/h/g. This improvement can be attributed to the uniform dispersion of nano TiO2 particles on g-C3N4, the flat ultra-thin layer structure of CN, and the constructed heterojunctions between two, which promote the separation of photogenerated electron-hole pairs. Measurements of PL and photocurrent response confirmed enhanced efficiency in interface charge separation and transfer. Additionally, it demonstrated lower internal resistance in EIS tests. Notably, owing to the piezoelectric properties of CN, when the reaction liquid was subjected to additional ultrasonic treatment, the hydrogen production rate further increased to 43.57 mmol/h/g and 2.9 mmol/h/g, respectively, in simulated sunlight and visible light response. The piezoelectric effect of CN induced by ultrasound regulated the bandgap width of the catalysts, broadening their response to visible light.