Magnetic resonance imaging (MRI) is a painless and safe diagnostic procedure that uses a powerful magnet and radio waves to produce detailed images of the body's organs and structures, without the use of X-rays or other radiation.