To simultaneously remove organic carbon and nitrogen, especially from wastewater containing organic amine compounds, a nanotube photoanode was prepared by depositing RuO2 and BiVO4 nanoparticles in and on a blue TiO2 nanotube substrate (BTNT/RuO2/BiVO4). The synthesized materials were systematically characterized by scanning electron microscope, energy-dispersive X-ray, X-ray diffraction, X-ray photoelectron spectroscopy, and electrochemical tests. Acetaminophen, a commonly used pharmaceutical with an amine group, was used as the model pollutant to examine the performance of the prepared electrodes. The results indicated that acetaminophen could be degraded by 100 % in 180 min over BTNT/RuO2/BiVO4 with a rate constant of 0.0338 min−1, which was 25.0 and 1.1 times higher than those obtained over BTNT/BiVO4 and BTNT/RuO2, respectively. Meanwhile, 81.3 % of total nitrogen could be removed. Compared with BTNT/BiVO4 and BTNT/RuO2, BTNT/RuO2/BiVO4 had a significant synergistic effect, and the synergy index reached to 47.7 %. Additionally, BTNT/RuO2/BiVO4 exhibited good stability, high current efficiency (63.2 %) and low energy consumption (0.020 kWh·g COD−1). The good performance of BTNT/RuO2/BiVO4 was mainly attributed to the enhanced formation of ClO· resulted from the synergistic interaction between RuO2 and BiVO4 due to the spatial confinement effect. Lastly, a possible reaction mechanism via ClO· over BTNT/RuO2/BiVO4 was proposed.