g-C3N4/{0 0 1}TiO2 was prepared by a simple solvent-free in situ synthesis method.
Compact connection between the two compounds facilitated interfacial charge transfer.
In situ growth of g-C3N4 and removal of F− can be simultaneously achieved.
The {0 0 1} facets of TiO2 was preserved during the calcination.
The composite exhibited a high activity for NO oxidation under UV and visible light.