Polymeric carbon nitride (PCN) has received extensive attention in suspension photocatalysis, whereas the preparation of high-quality PCN film is still at an initial stage, limiting its practical application in photoelectrochemical (PEC) systems. Herein, an integrated molten and vapor condensation route is realized using small molecule precursors dicyandiamide (DCDA) and thiourea (TU) to form PCN film photoelectrode with high performance. The in-situ deposition route endows the PCN film with a composite structure including a thick porous zone with suitable thickness for light absorption and thin compact zone with a higher C/N ratio for better charge transportations. The growth of the specific film and the functions of precursors DCDA and TU are investigated in detail. Owing to the unique condensation route and film structure, this PCN film exhibits excellent performance in PEC water splitting with a photocurrent density of ca. 140 µA cm−2 in 0.1 mol L−1 NaOH electrolyte at 1.23 VRHE, which is competitive or higher than the results of the reported PCN photoanodes prepared by the molten-mediated method and thermal vapor condensation. The integrated molten and vapor condensation strategy is enlightening for comprehending the growth of PCN photoelectrodes.