In the context of nuclear magnetic resonance imaging (NMRI), resonance refers to the absorption of radiofrequency energy by atomic nuclei in a magnetic field. When the applied radiofrequency matches the resonant frequency of the atomic nuclei, it causes them to resonate and emit signals that can be detected and used to create images of the internal structures of the body.