Radiotherapy works by damaging the DNA of cancer cells. This damage prevents the cells from dividing and growing, leading to their death. The treatment can be delivered externally through a machine called a linear accelerator, or internally through a process known as brachytherapy, where radioactive sources are placed close to or inside the tumor.