Nuclear magnetic resonance (NMR) involves aligning atomic nuclei in a magnetic field and perturbing them with radio waves. It provides information on molecular structure. NMR is used in medicine for MRI, in chemistry to determine molecular structures, and in petroleum exploration to analyze rock properties. It has advantages of directly measuring fluid properties but also limitations such as sensitivity to ions and shallow depth of penetration.