Ionizing radiation, such as X-rays and gamma rays, carries enough energy to remove tightly bound electrons from atoms, creating ions. This process can cause direct damage to the DNA or generate reactive oxygen species (ROS) that indirectly harm the DNA. These mutations can lead to the development of cancer if the damage affects genes that regulate cell growth and division.