Guest molecule release triggers changes in the catalytic and magnetic properties of a Fe(II)-based 3D metal-organic framework.