Cancer cells form when normal cells undergo genetic mutations. These mutations can be caused by various factors such as radiation, chemical exposure, or even inherited genetic conditions. Over time, these mutations accumulate, leading to the transformation of normal cells into cancerous ones.