Diatomite from Tuy An district, Phu Yen province, with different purities and diatom integrity as catalyst carriers, were adopted to prepare TNTs/g-C3N4 composite catalysts by a sol-gel method, with an optimal weight ratio of 1:1 for TNTs/g-C3N4 and diatomite. Compared with pure TNTs, g-C3N4, and TNTs/g-C3N4, the obtained composite photocatalysts exhibited lower photocatalytic performance under the same conditions and NO removal within 30 min under visible light. The NO gas treatment efficiency under the same conditions with different catalyst supports only decreases by approximately 18% at a reaction rate of 0.0950 min-1. This research on composite photocatalysts is a promising step towards practical environmental remediation. The use of diatomite as a carrier for photocatalytic materials is particularly noteworthy, as it is a naturally available and cost-effective source of materials. However, further improvements in the photocatalytic performance of the composite material are necessary to fully realize its potential in environmental remediation, including removing NOx and other pollutants. Overall, this study provides valuable insights into the influence of carriers on the photocatalytic activity of composite photocatalysts and lays the foundation for future research in this field.