A dual stimuli-responsive system was constructed by introducing methyl viologen into a luminescent europium-organic framework with a compact packing mode. In addition to absorption and emission properties that are sensitive to both light and heat involving electron/energy transfer processes, the photoactive MOF has a spectral response from UV to the visible region.