A kind of porphyrin-spiropyrane derivative was synthesized and detailedly characterized.On this basis,the photoisomerization and ionic response behaviors of the compound were studied by UV-Vis spectrometry,and a new mechanism to explain the coupling behavior between porphyrin ring and spiropyrane was proposed.The experiental results showed that metal ions could induce porphyrin-spiropyran molecule to generate a new conformation which will affect the photoisomerization properties of spiropyrane.In addition,with the changes of ionic radius and electrophilic ability,the optical properties of the porphyrin-spiropyrane derivative presented significant differences.This study provides an idea for constructing a new ionic probe.