MRI uses powerful magnets and radio waves to create images of the organs and tissues inside the body. This technology is especially valuable in cancer detection because it can differentiate between normal and abnormal tissues. The contrast between tissues is enhanced in MRI, allowing for the detection of tumors or other abnormalities that may not be visible using other imaging techniques like X-rays or CT scans.