PET scans involve the use of radioactive tracers that emit positrons. When these positrons encounter electrons in the body, they annihilate each other, producing gamma rays. These gamma rays are detected by the PET scanner, allowing for the creation of detailed, three-dimensional images of the tracer's distribution within the body.