A hierarchical CoP@ZnIn2S4 photocatalyst was prepared via a MOF-templated strategy. Owing to the unique composition and morphology that can facilitate the separation of photoexcited carriers, enhance light absorption and provide high surface area, CoP@ZnIn2S4 exhibited a H2 evolution rate of 0.103 mmol h-1 and remained stable over 24 hours.