Photocatalytic degradation of pollutants coupled with hydrogen (H2) evolution has emerged as a promising solution for environmental and energy crises. However, the fast recombination of photoexcited electrons and holes limits photocatalytic activities. Herein, an S-scheme heterojunction carbon doped-TiO2/ZnIn2S4 (C–TiO2/ZnIn2S4) was designed by substituting oxygen sites within C–TiO2 by ZnIn2S4. Under visible light irradiation, the optimal C–TiO2/ZnIn2S4 exhibits a higher degradation efficiency (88.6%) of microcystin-LR (MC-LR), compared to pristine C–TiO2 (72.9%) and ZnIn2S4 (66.8%). Furthermore, the H2 yield of the C–TiO2/ZnIn2S4 reaches 1526.9 μmol g−1 h−1, which is 3.83 times and 2.87 times that of the C–TiO2 and ZnIn2S4, respectively. Experimental and theoretical investigations reveal that an internal electric field (IEF) informed in the C–TiO2/ZnIn2S4 heterojunction, accelerates the separation of photogenerated charge pairs, thereby enhancing photocatalytic efficiency of MC-LR degradation and H2 production. This work highlights a new perspective on the development of high-performance photocatalysts for wastewater treatment and H2 generation.