© 2017 The Royal Society of Chemistry. Optical control of memristors opens the route to new applications in optoelectronic switching and neuromorphic computing. Motivated by the need for reversible and latched optical switching we report on the development of a memristor with electronic properties tunable and switchable by wavelength and polarization specific light. The device consists of an optically active azobenzene polymer, poly(disperse red 1 acrylate), overlaying a forest of vertically aligned ZnO nanorods. Illumination induces trans-cis isomerization of the azobenzene molecules, which expands or contracts the polymer layer and alters the resistance of the off/on states, their ratio and retention time. The reversible optical effect en...