A novel photochromic diarylethene containing a 2,1,3-benzoxadiazole structure has been synthesized and its multicontrollable fluorescence properties have been systematically studied by the stimulation of light and metal ions. The compound exhibited favorable photochromism and fluorescent switching properties. Furthermore, it can serve as a fluorescent chemosensor for highly selective recognition of Cu 2+ in aqueous acetonitrile. When triggered by Cu 2+ , it displayed a remarkable blue shift from 594 to 524 nm (70 nm) with a significant fluorescence color change from yellow to bright green. As a result, a logic circuit has also been constructed on the basis of light and chemical stimulation.