High energy X-rays work by damaging the DNA of cancer cells, thereby inhibiting their ability to reproduce and grow. When the DNA is damaged beyond repair, the cancer cells die and are eventually eliminated by the body. These X-rays are precisely targeted to minimize damage to surrounding healthy tissues, making them an effective tool in cancer treatment.