Heterojunctions can effectively separate electrons (e−) and holes (h+) and achieve efficient photocatalytic water splitting to produce H2. Here, a simple strategy for the synthesis of a sulfide/solid solution heterojunction denoted by NiS/Co3S4/ZnCdS is proposed using a Ni/Co-bimetallic organic framework as a template. The heterostructure formed between ZnCdS and NiS/Co3S4 shortens the electron transport distance and greatly reduces the recombination of e− and h+. The resulting composites show excellent photocatalytic activity, with the highest H2 rate reaching 98.6 mmol h−1 g−1 in the presence of Na2SO3-Na2S as a sacrificial agent. The improvement in the photocatalytic ability of the composites can be attributed to the synergy between ZnCdS and NiS/Co3S4, which inhibits the agglomeration of ZnCdS nanoparticles to expose more active sites. This work offers a new strategy for the preparation of efficient photocatalysts for the utilization of clean energy.