A linear accelerator, commonly referred to as a linac, is a sophisticated device used in the treatment of cancer through radiation therapy. It generates high-energy X-rays or electrons that are directed to the tumor, with the goal of destroying cancer cells while sparing the surrounding healthy tissue.