A series of nanosized W,N-codoped and single-doped N- and W-anatase-TiO2 catalysts have been prepared by a microemulsion method and calcined at different temperatures. The activity in the sunlight selective photo-oxidation of toluene and styrene has been correlated with structural, electronic, and surface examinations of the catalysts done with the help of XRD-Rietveld, N2 physisorption, X-ray photoelectron, infrared, electron paramagnetic resonance (EPR) and UV–vis spectroscopies. Irrespective of the reaction, W,N-codoped nanocatalysts showed an enhanced photoactivity with respect to bare anatase and single-doped N-TiO2 and W-TiO2 materials. A strong W–N synergistic interaction appears to play a decisive role in driving the excellent photoactivity performance of W,N-codoped materials by affecting (i) electronic properties, particularly maximizing the anatase band gap decrease and enhancing the subsequent visible light photon absorption, and (ii) surface properties, in turn related to the formation of OH radicals upon light excitation. The maximum photoactivity is reached by calcination at 450°C and is concomitantly observed with a near complete selectivity to partial oxidation products. Higher calcination temperatures yielded solids with significantly inferior photocatalytic performance. The properties of the W–N interaction are discussed as a function of the calcination temperature.