In this work, the treatment of synthetic wastewaters containing methylene blue (MB) and rhodamine B (RB) and actual textile wastewaters (ATW) using boron doped diamond (BDD) anodic oxidation was investigated. Voltammetric study has shown that both MB and RB can be oxidized directly at the anode surface in the potential region where the electrolyte salt is stable. Galvanostatic electrolyses of synthetic and actual industrial wastewaters have led to total abatement of COD and TOC at different operating conditions (electrolyte salt and initial pollutant concentration and current density) and the efficiency of the electrochemical process was governed only by mass-transfer limitations. The nature of the supporting electrolyte has a great influence on the rate and the efficiency of the electrochemical oxidation of dyes. The treatment in the presence of NaCl appears to be more efficient in the COD removal, while in the presence of Na2SO4 improves the TOC removal. From the experimental results it seems that the primary mechanisms in the oxidation of dyes are the mediated electro-oxidation by hydroxyl radicals and other oxidants electro-generated from supporting electrolyte oxidation.