Switchable supramolecular self-assemblies on the basis of interaction between melamine group containing photochromic diarylethene unit (DTE) and naphthalimide derivate (1) were designed and fabricated. 1 can gelate several aprotic solvents with different morphologies. The gel turned into partial gel in ethyl acetate with the addition of DTE as a guest molecule. Both the absorption and fluorescence spectra of the assembly can be reversibly switched ...