In this thesis, I present the development and benchmarking of several theoretical methods designed to enable the rigorous modeling of magnetic properties of molecules containing one or a few heavy atoms, particularly single-molecule magnets. The new methods use a full four-component treatment of relativity, allowing spin–orbit effects to be taken...