Selective oxidation of alcohols to aldehydes plays an important role in perfumery, pharmaceuticals, and agrochemicals industry. Different from traditional catalysis or photocatalytic process, here we report an effective photoelectrochemical (PEC) approach for selective anaerobic oxidation of alcohols accompanied with H production by means of solar energy. By using TiO nanowires modified with graphitic carbon layer as photoanode, benzyl alcohol (BA) has been oxidized to benzaldehyde with high efficiency and selectivity (>99 %) in aqueous media at room temperature, superior to individual electrocatalytic or photocatalytic processes. Moreover, this PEC synthesis method can be effectively extended to the oxidation of several other aryl alcohols to their corresponding aldehydes under mild conditions. The electron spin resonance (ESR) results indicate the formation of intermediate active oxygen (O ) on the photoanode, which further reacts with alcohols to produce final aldehyde compounds.