A linear accelerator accelerates charged particles, such as electrons, to high speeds using electromagnetic fields. These high-energy particles then collide with a metal target to produce high-energy X-rays. These X-rays are meticulously shaped and directed to conform to the shape of the tumor using advanced imaging and computer systems. This technique, known as conformal radiation therapy, ensures that the maximum dose is delivered to the tumor while minimizing exposure to healthy tissue.