Radiation oncology is the medical specialty that deals with the use of ionizing radiation in the treatment of cancer.