Herein, we develop a self-driven photoelectrochemical system (SDPS) featuring a TiO2 nanorod array (TNR)/Si photovoltaic cell (Si PVC) photoanode and a porous copper foam (CF) cathode for efficient uranium recovery. Under simulated sunlight illumination, this SDPS simultaneously achieves ∼ 99.4 % UO22+ recovery and ∼ 99.2 % sulfamethoxazole (SMX) removal, with observed rate constant (kobs) value of 0.121 min−1 and 0.029 min−1, respectively, and a maximum power density (Pmax) of 0.89 mW·cm−2 when treating complex wastewater of SMX (10 mg·L−1)-UO22+ (10 mg·L−1). The TNR photoanode absorbs short-wavelength light (λ < 412 nm), generating electron-hole pairs, while the rear Si PVC absorbs transmission light, creating a self-bias potential that drives electrons transfer towards CF cathode, continuously generating electrical energy in the external circuit. The retained holes and derived •OH oxidize SMX, breaking UO22+-SMX complexation, while electrons on the CF reduce UO22+ to insoluble tetravalent uranium (U(IV)) species. This SDPS demonstrates robust performance across varying UO22+ (5 ∼ 40 mg·L−1) and SMX (0 ∼ 40 mg·L−1) concentrations, pH ranges (4 ∼ 8), coexisting ions, and different types of uranium-containing wastewaters, maintaining stability over 20 cycles. It achieves ∼ 97.5 % UO22+ extraction and ∼ 99.8 % SMX removal in simulated seawater, with a Pmax of 1.27 mW·cm−2. This work presents a promising resource strategy for uranium extraction.