Designing porous nanostructures with unprecedented functionalities and an effective ability to harvest the maximum energy region of the solar spectrum and suppress the charge-carrier recombination rate offers promising potential for sustainable energy production. Although several functional porous nanostructures have been developed, high-efficiency materials are still needed. Herein, we report a new, highly active, noble-metal-free, and redox-mediator-free Z-scheme photocatalyst, CdS/Co-C@Co9S8, for H-2 production through water splitting under solar irradiation. The designed photocatalytic system contains open 3D CdS mesopores as a light absorber for wider solar-light harvesting. Metal-organicframework-derived cobalt nanocrystal-embedded few-layered carbon@Co9S8 double-shelled nanocages were used as a co-semiconductor to hamper the photo charge-carrier recombination by accelerating the photogenerated electrons and holes from the other semiconductor. The optimized catalyst shows a H-2 evolution rate of 26.69mmolg(-1)h(-1) under simulated solar irradiation, which is 46times higher than that of the as-synthesized CdS mesoporous nanostructures. The apparent quantum yield reached 7.82% at =425nm in 5h. The outstanding photocatalytic activity of CdS/Co-C@Co9S8 reflects the favorable suppression of the charge-carrier recombination rate, as determined by photoluminescence, photocurrent, and impedance analyses. We believe that the findings reported here may inspire the design of new noble-metal-free porous nanohybrids for sustainable H-2 production.