NOESY relies on the Nuclear Overhauser Effect (NOE), which is a change in the intensity of NMR signals due to through-space dipolar interactions between protons. When two protons are close in space (typically within 5 Å), the relaxation of one proton can affect the relaxation of the other. This interaction is translated into cross-peaks in a NOESY spectrum, providing insights into the spatial arrangement of atoms.