It is essential that the structure be non-stoichiometric. In this case the iron molecules are randomly replaced by water (6 molecules of water per replaced iron). This non-stoichiometry is essential to the photomagnetism of Prussian blue analogues as regions which contain an iron vacancy are more stable in the non-magnetic state and regions without a vacancy are more stable in the magnetic state. By illumination by the correct frequency one or another of these regions can be locally changed to its more stable state from the bulk state, triggering the phase change of the entire molecule. The reverse phase change can be accomplished by exciting the other type of region by the appropriate frequency.