Magnetic resonance imaging (MRI), also known as nuclear magnetic resonance imaging, is a technique for creating detailed images of the human body.

The technique uses a very powerful magnet to align the nuclei of atoms inside the body, and a variable magnetic field that causes the atoms to resonate, a phenomenon called nuclear magnetic resonance. The nuclei produce their own rotating magnetic fields that a scanner detects and uses to create an image.