As one typical broad-spectrum antibiotics, the abuse of sulfonamide induce potential ecology risk to aquatic environment. Here, the novel Sm-doped Ti4O7 electrode (Sm-Ti4O7) were fabricated using a facile spark plasma sintering (SPS) method for anodic decomposition of recalcitrant pollutants of sulfamethazine (SMZ). Electrochemical degradation experiments demonstrated that the 0.25% Sm-Ti4O7 anode achieved a remarkable 91.2% removal SMZ (kobs = 0.0158 min−1), which the degradation kinetics was 3.16 times higher than that of the pristine Ti4O7 anode. Electron paramagnetic resonance (EPR) and quenching experiments confirmed that hydroxyl radicals (•OH) were the primary active species responsible for the SMZ degradation. Linear sweep voltammetry (LSV) revealed that the oxygen evolution potential (OEP) of 0.25% Sm-Ti4O7 anode was 2.23 V (vs. standard hydrogen electrode, SHE), which is higher than that of pristine Ti4O7 anode. Thus, the one-electron water oxidation reaction was boosted on 0.25% Sm-Ti4O7 anode for producing highly reactive of •OH. The degradation pathway and intermediate products were validated using high-performance liquid chromatography-tandem mass spectrometry (HPLC-MS/MS), and the toxicity analysis was also estimated. In summary, the doping of rare metal Sm in Ti4O7 could boosts the electro-generation of hydroxyl radical via H2O oxidation, which make the electrochemical oxidation more effective and efficient.