A novel photovoltaic solar photoelectro-Fenton (SPEF) system was developed.
Efficient mineralization of trimethoprim (TMP) was achieved.
Aromatic intermediates, carboxylic acids and inorganic products were detected.
A comprehensive TMP degradation pathway in SPEF process was proposed.