Organoboron compounds are of high significance in organic synthesis due to the unique versatility of boryl substituents to access further modifications. The high demand for the incorporation of boryl moieties into molecular structures has witnessed significant progress, particularly in the C(sp3)−H borylation of hydrocarbons. Taking advantage of special characteristics of photo/electrochemistry, we herein describe the development of an oxidative C(sp3)−H borylation reaction under metal- and oxidant-free conditions, enabled by photoelectrochemical strategy. The reaction exhibits broad substrate scope (>57 examples), and includes the use of simple alkanes, halides, silanes, ketones, esters and nitriles as viable substrates. Notably, unconventional regioselectivity of C(sp3)−H borylation is achieved, with the coupling site of C(sp3)−H borylation selectively located in the distal methyl group. Our method is operationally simple and easily scalable, and offers a feasible approach for the one-step synthesis of high-value organoboron building blocks from simple hydrocarbons, which would provide ample opportunities for drug discovery.