Boron-doped diamond (BDD) electrodes are regarded as the most promising catalytic materials that are highly efficient and suitable for application in advanced electrochemical oxidation processes targeted at the removal of recalcitrant contaminants in different water matrices. Improving the synthesis of these electrodes through the enhancement of their morphology, structure and stability has become the goal of the material scientists. The present work reports the use of an ultranano-diamond electrode with a highly porous structure (B-UNCDWS/TDNT/Ti) for the treatment of water containing carbaryl. The application of the proposed electrode at current density of 75 mA cm−2 led to the complete removal of the pollutant (carbaryl) from the synthetic medium in 30 min of electrolysis with an electric energy per order of 4.01 kWh m−3 order−1. The results obtained from the time-course analysis of the carboxylic acids and nitrogen-based ions present in the solution showed that the concentrations of nitrogen-based ions were within the established maximum levels for human consumption. Under optimal operating conditions, the proposed electrode was successfully employed for the complete removal of carbaryl in real water. Thus, the findings of this study show that the unique, easy-to-prepare BDD-based electrode proposed in this study is a highly efficient tool which has excellent application potential for the removal of recalcitrant pollutants in water.