A network composed of gold nanoparticles covered with diarylethene dithiophenols was prepared on an interdigitated nanogapped gold electrode to show the reversible photoswitching of the conductance due to the photochromism of the diarylethene molecules induced by UV and visible light.