MRI uses a combination of strong magnetic fields and radiofrequency pulses to manipulate the natural magnetic properties of the body's hydrogen atoms. When placed in a magnetic field, these atoms produce signals that are captured by the MRI machine and converted into images by a computer. The resulting images can show both soft and hard tissues in high detail, making MRI particularly useful for diagnosing a variety of medical conditions.