Irradiating Cu2Mo(CN)8⋅8H2O with blue light induces a global magnetization, whereas succeeding irradiations with red or longer-wavelength light demagnetize this material. We solve the time-dependent Schrödinger equation for an extended Hubbard model to reproduce the photoreversible magnetism. Monitoring the photoinduced optical-conductivity and angle-resolved-photoemission spectra, we reveal that the magnetic round trip by way of ferromagnetism is far from a return in terms of electronics. While visible-light-induced magnetization has never been observed in the tungsten analog Cu2W(CN)8⋅5H2O, infrared-light irradiation may magnetize this material as well.