The copolymer of hydroxypropyl methacrylate (HPMA) and photochromic spiropyran methacrylate (SPMA) has been synthesized. The films of the copolymer (P(HPMA-SPMA)) in a hydrated state showed reversible swelling-shrinking behavior in response to photoreversible isomerization and metal complexation of SPMA units in spite of covalently noncross-linked copolymers. In addition, the protonated open form of the SPMA units of the copolymer was possibly stabilized thermodynamically by the HPMA units from ultraviolet-visible absorption measurement of the hydrated P (HPMA-SPMA) film. On the other hand, the difference in color of the hydrated films between P(HPMA-AABMA) and P (NIPMA-AABMA), which was a copolymer of N-isopropyl methacryl amide (NIPMA) and azobenzene methacrylate (AABMA) as a pH indicator, was suggestive of the interference of the proximal hydroxyl groups of the immobilized HPMA units with protonation of the AABMA units. The HPMA units of the copolymers also contributed to improvement of thermodynamic stability of the metal complexes with the SPMA units.