NMR spectroscopy exploits the magnetic properties of certain atomic nuclei. When placed in a magnetic field, these nuclei absorb and re-emit electromagnetic radiation at characteristic frequencies. By measuring these frequencies, researchers can infer detailed information about the molecular environment, chemical structure, and dynamics of the sample.