The frequent detection of sulfamethoxazole (SMX) in wastewater and surface waters gives rise of concerns about their ecotoxicological, effects and potential risks to induce antibacterial resistant genes. UV/hydrogen peroxide (UV/H2O2) and UV/persulfate (UV/PDS) advanced oxidation processes have been demonstrated to be effective for the elimination of SMX, but there is still a need for a deeper understanding of product formations. In this study, we identified and compared the transformation products of SMX in UV, UV/H2O2 and UV/PDS processes. Because of the electrophilic nature of SO4 center dot-, the second-order rate constant for the reaction of sulfate radical (SO4 center dot-) with the anionic form of SMX was higher than that with the neutral form, while hydroxyl radical (center dot OH) exhibited comparable reactivity to both forms. The direct photolysis of SMX predominately occurred through cleavage of the N-S bond, rearrangement of the isoxazole ring, and hydroxylation mechanisms. Hydroxylation was the dominant pathway for the reaction of center dot OH with SMX. SO4 center dot- favored attack on -NH2 group of SMX to generate a nitro derivative and dimeric products. The presence of bicarbonate in UV/H2O2 inhibited the formation of hydroxylated products, but promoted the formation of the nitro derivative and the dimeric products. In UV/PDS, bicarbonate increased the formation of the nitro derivative and the dimeric products, but decreased the formation of the hydroxylated dimeric products. The different effect of bicarbonate on transformation products in UV/H2O2 vs. UV/PDS suggested that carbonate radical (CO3 center dot-) oxidized SMX through the electron transfer mechanism similar to SO4 center dot- but with less oxidation capacity. Additionally, SO4 center dot- and CO3 center dot- exhibited higher reactivity to the oxazole ring than the isoxazole ring of SMX. Ecotoxicity of transformation products was estimated by ECOSAR program based on the quantitative structure-activity relationship analysis as well as by experiments using Vibrio fischeri, and these results indicated that the oxidation of SO4 center dot- or CO3 center dot- with SMX generated more toxic products than those of (OH)-O-center dot. (C) 2017 Elsevier Ltd. All rights reserved.