Engineering the local density of states with nanophotonic structures is a powerful tool to control light-matter interactions via the Purcell effect. At optical frequencies, control over the electric field density of states is typically used to couple to and manipulate electric dipole transitions. However, it is also possible to engineer the magnetic density of states to control magnetic dipole transitions. In this work, we experimentally demonstrate the optical magnetic Purcell effect using a single rare earth ion coupled to a nanophotonic cavity. We engineer a new single photon emitter, Er
3+ in MgO, where the electric dipole decay rate is strongly suppressed by the cubic site symmetry, giving rise to a nearly pure magnetic dipole optical transition. This allows the unambiguous determination of a magnetic Purcell factor
Pm=1040±30. We further extend this technique to realize a magnetic dipole spin-photon interface, performing optical spin initialization and readout of a single Er
3+ electron spin. This work demonstrates the fundamental equivalence of electric and magnetic density of states engineering, and provides a new tool for controlling light-matter interactions for a broader class of emitters.
Tremendous advances in the study of magnetic light-matter interactions have recently been achieved using man-made nanostructures that exhibit and exploit an optical magnetic response. However, naturally occurring emitters can also exhibit magnetic resonances in the form of optical-frequency magnetic-dipole transitions. Here we quantify the magnetic nature of light emission using energy- and momentum-resolved spectroscopy, and leverage a pair of spectrally close electric- and magnetic-dipole transitions in trivalent europium to probe vacuum fluctuations in the electric and magnetic fields at the nanometre scale. These results reveal a new tool for nano-optics: an atomic-size quantum emitter that interacts with the magnetic component of light. Light-matter interactions are generally dominated by electric fields and electric-dipole transitions. This study, however, quantifies magnetic contributions to light emission and so exploits the strong natural magnetic-dipole transitions in lanthanide ions to measure optical-frequency magnetic fields.