Nuclear magnetic resonance is a technique used to study the atomic nuclei by exploiting their magnetic properties.