The composites of some transition metal oxides are currently attracting interesting roles in various fields of technology and industry. The present work attempts to tune the properties of copper oxide (CuO) for hydrogen energy generation. Iron (Fe) and cobalt (Co) were intentionally doped at precise contents into CuO thin films. X-ray diffraction (XRD) indicated that the successful substitution of Fe and Co on the Cu sites created induces pressure (tensile) stress in the lattice. Fe doping deteriorated the films' crystallinity and increased the dislocation density from 1.82 × 10−3 to 4.36 × 10−3 nm−2, while Co codoping displayed unsystematic behavior. The scanning electron microscope (SEM) images showed that the films have smooth surfaces comprising a huge number of particles/unit area with a narrow size distribution. The energy-dispersive X-ray (EDX) analysis confirmed the presence of both Fe and Co with almost the pre-calculated ratios. The optical measurement showed that increasing the Fe contents increases the absorption coefficient of CuO and narrows its optical band gap from 1.7 to 1.55 eV. The photoluminescence (PL) intensity increases for Fe-doped CuO films whereas quenched when doped with Co. A series of photoelectrochemical (PEC) measurements were conducted to evaluate the performance of the prepared films in the production of solar hydrogen. The CuO–6%Fe film showed high photocatalytic performance for H 2 generation from H 2 O splitting over a wide wavelength range of sunlight with long-term photostability. The photocurrent density of CuO–6%Fe film is about 155 times more than those obtained from pure CuO film. The incident photon-to-current efficiency (IPCE) and the solar-to-hydrogen efficiency (η STH) of CuO–6%Fe film were 5.98 % at 307 nm and 0.94 % under Xenon illumination, respectively. Hence, this work proposed an efficient and reasonable technique to enhance the performance of a CuO-based photoelectrode for solar hydrogen production. [Display omitted] • Pure, Fe-doped, and (Fe, Co) codoped CuO photoelectrodes are made by spin coating. • The structural and morphological features of photoelectrodes are studied. • The performance of the photoelectrodes for solar H 2 production is evaluated. • Fe- and (Fe, Co)- doping affect optical and electric properties. • Solar to-hydrogen conversion efficiencies are estimated, and electrode stability is addressed. [ABSTRACT FROM AUTHOR]