A new reversible light-controllable gel-to-sol transition system was constructed.
Spiropyran compound could reversibly coordinate with Ca2+ upon UV/Vis irradiation.
All the gelation components were commercially cheap available.
Spiropyran compound could be prepared by facile material and simple process.