The decolorization and mineralization of solutions containing 230 mg L(-1) of the food azo dye Allura Red AC at pH 3.0 have been studied upon treatment by electrochemical oxidation with electrogenerated H2O2 (EO-H2O2), electro-Fenton (EF) and photoelectro-Fenton (PEF). Experiments were performed with a stirred tank reactor containing a boron-doped diamond (BDD) or Pt anode and an air-diffusion cathode to generate H2O2. The main oxidants were hydroxyl radicals formed at the anode surface from water oxidation and in the bulk from Fenton's reaction between H2O2 and added Fe(2+). The oxidation ability increased in the sequence EO-H2O2 < EF < PEF and faster degradation was always obtained using BDD. PEF process with BDD yielded almost total mineralization following similar trends in SO4(2-), ClO4(-) and NO3(-) media, whereas in Cl(-) medium, mineralization was inhibited by the formation of recalcitrant chloroderivatives. GC-MS analysis confirmed the cleavage of the −N=N− bond with formation of two main aromatics in SO4(2-) medium and three chloroaromatics in Cl(-) solutions. The effective oxidation of final oxalic and oxamic acids by BDD along with the photolysis of Fe(III)-oxalate species by UVA light accounted for the superiority of PEF with BDD. NH4(+), NO3(-) and SO4(2-) ions were released during the mineralization.