p-Silicon nanowire (SiNW) arrays have been extensively investigated in recent years as promising photocathodes for solar-driven hydrogen evolution. However, it remains challenging to fabricate SiNW photocathodes having both high photoelectrocatalytic activity and long-term operational stability through a simple and affordable approach. Herein, we report conformal and continuous deposition of a di-cobalt phosphide (Co2P) layer on lithography-patterned highly-ordered SiNW arrays via a cost-effective drop-casting method followed by a low-temperature phosphorization treatment. The as-deposited Co2P layer consists of crystalline nanoparticles and has an intimate contact with silicon nanowires, forming a well-defined SiNW@Co2P core/shell nanostructure. The conformal and continuous Co2P layer endows dual functions: on the one hand, it serves as a highlyefficient catalyst capable of substantially improving the photoelectrocatalytic activity towards the hydrogen evolution reaction (HER); on the other hand, it can effectively passivate SiNWs to protect them from photo-oxidation, thus prolonging the lifetime of the electrode. As a consequence, when used for solar-driven hydrogen evolution, the SiNW@Co2P photocathode with an optimized Co2P layer thickness exhibits a high photocurrent density of-21.9 mA cm-2 and excellent operational stability of up to 20 hours, outperforming many nanostructured silicon photocathodes reported in the literature. The combination of passivation and catalytic functions in a single continuous layer represents a promising strategy for designing high-performance semiconductor photoelectrodes for use in solar-driven water splitting, which may simplify the fabrication procedures and potentially reduce the production cost.