X-rays, gamma rays, and other forms of ionizing radiation are an effective way to treat some types of cancer. During radiation therapy, high doses of ionizing radiation (much higher than those used for imaging tests) are directed at the cancer, resulting in the death of the cancer cells.