Designing highly efficient full-spectrum responsive Z-scheme heterojunction for wastewater decontamination and disinfection is urgently essential. Herein, a novel Z-scheme g-C3N4/WO3-x heterojunction was successfully synthesized by a facile wet impregnation method for the highly efficient photocatalytic degradation and sterilization. Benefiting from the accelerated charge separation, broadened light absorption to near infrared region, and appropriate band energy, optimized g-C3N4/WO3-x heterojunction exhibited photocatalytic degradation of 86.3 % and 97.4 % tetracycline in 2 h under visible light and full-spectrum light, respectively. Meanwhile, 6.5-log of Escherichia coli strains could also be inactivated by optimized g-C3N4/WO3-x heterojunction within 45 min and 15 min under visible light and full-spectrum light, respectively. Impressively, it also exhibited desirable anti-interference ability and satisfying photocatalytic degradation capacity with various key experimental parameters. The plausible degradation pathways of TC and the main active species involved in the photocatalysis were investigated based on liquid chromatography-mass spectrometer (LC-MS) and electron paramagnetic resonance (EPR) analysis. Mineralization process of TC was further confirmed by three-dimensional fluorescence spectra (3D EMMs). Besides, Toxicity Estimation Software Tool (T.E.S.T.) and Ecological Structure-Activity Relationships (ECOSAR) program were applied to predict the noxiousness of TC and its potential intermediates. The results suggested that the excitotoxicity of intermediates generally decreased relative to the pristine TC. Finally, we propose a plausible enhancement mechanism of photocatalytic degradation and sterilization. This work sheds a new light on the design of novel full-spectrum responsive Z-scheme heterojunction for environmental remediation.