Nuclear magnetic resonance (NMR) is a phenomenon where nuclei in a magnetic field absorb and re-emit electromagnetic radiation. This process occurs near resonance when the oscillation frequency matches the intrinsic frequency of the nuclei, which depends on the strength of the static magnetic field, the chemical environment, and the magnetic properties of the isotope involved.