Radiation therapy works by damaging the DNA inside cancer cells, which prevents them from growing and dividing. This helps to shrink tumors and kill cancer cells.