BDC = 1,4-benzenedicarboxylic acid) and a viologen-derived ligand 1-carboxyethyl-4,4'-bipyridine (L = CEbpy). As expected, the incorporation of the viologen unit into the frameworks results in the predefined photochromism upon both sunlight and UV-light. Compounds 1-3 feature a two-dimensional (2D) layered structure and are all photochromic due to the formation of CEbpy radicals by photoinduced electron transfer (PET). The aggregates build an interesting stable crystalline framework that exhibits long-lived color constancy in the solid state.