Cancer primarily stems from alterations in the DNA, a molecule composed of atoms arranged in a double helix structure. Mutations at the atomic level in the DNA sequence can disrupt normal cellular functions, leading to uncontrolled cell division and tumor formation. These mutations can be triggered by various factors, including radiation, chemicals, and inherited genetic predispositions.