NMR spectroscopy exploits the magnetic properties of nuclei. When placed in a magnetic field, nuclei of certain atoms resonate at a characteristic frequency. By applying a radiofrequency pulse, the nuclei are excited from their equilibrium state. As they return to equilibrium, they emit radiofrequency signals that are detected and transformed into a spectrum. This spectrum provides information about the chemical environment of the nuclei.