The future use of single-molecule magnets in applications will require the ability to control and manipulate the spin state and magnetization of the magnets by external means. There are different approaches to this control, one being the modification of the magnets by adsorption of small ligand molecules. In this paper we use iron phthalocyanine supported by an Au(111) surface as a model compound and demonstrate, using x-ray photoelectron spectroscopy and density functional theory, that the spin state of the molecule can be tuned to different values (S ∼ 0, [Formula: see text], 1) by adsorption of ammonia, pyridine, carbon monoxide or nitric oxide on the iron ion. The interaction also leads to electronic decoupling of the iron phthalocyanine from the Au(111) support.