MRI uses strong magnetic fields and radio waves to produce diagnostic images of the body. There are three main types of MRI magnets - permanent magnets which use iron alloys, resistive magnets which require large power supplies, and superconductive magnets which use niobium alloys cooled with liquid helium. Safety is crucial with MRI due to the strong magnetic fields which can pull metal objects or cause interference. Different pulse sequences such as T1-weighted, T2-weighted, and FLAIR are used to visualize tissues and abnormalities in the brain.