Magnetochemistry is concerned with the magnetic properties of chemical compounds and elements. Magnetic properties arise from the spin and orbital angular momentum of the electrons contained in a compound. Compounds are diamagnetic when they contain no unpaired electrons. Molecular compounds that contain one or more unpaired electrons are paramagnetic. The magnitude of the paramagnetism is expressed as an effective magnetic moment, μeff. For first-row transition metals the magnitude of μeff is, to a first approximation, a simple function of the number of unpaired electrons, the spin-only formula. In general, spin–orbit coupling causes μeff to deviate from the spin-only formula. For the heavier transition metals, lanthanides and actinides, spin–orbit coupling cannot be ignored. Exchange interaction can occur in clusters and infinite lattices, resulting in ferromagnetism, antiferromagnetism or ferrimagnetism depending on the relative orientations of the individual spins.