You get skin cancer when DNA in skin cells accumulates enough damage to disable the genes that normally control growth, and the dominant cause is ultraviolet radiation from sunlight or tanning beds. UV photons strike DNA and corrupt it directly. Cells usually repair the damage, but unrepaired errors become mutations with every division. Enough mutations in the wrong genes, and a cell begins dividing without restraint.

The mutation chain, step by step

UV damage begins at the molecular scale. Ultraviolet B photons carry enough energy to be absorbed directly by DNA bases, most often thymine. When two adjacent thymine bases absorb UVB, they fuse into a cyclobutane pyrimidine dimer, a bulky lesion that distorts the DNA helix and blocks the machinery that copies and reads genes. This is a physical chemistry event, not a metaphor: the photon's energy is captured by the base and converted into a covalent bond between neighbors.

Ultraviolet A works differently. It carries less energy, so it mostly excites other molecules in the cell that then transfer energy to DNA, producing oxidative damage, including a lesion called 8-oxoguanine. UVA also reaches deeper into the dermis than UVB. A practical consequence: UVB drives sunburn and much of the direct DNA insult, while UVA contributes a substantial share of the total mutational burden through indirect chemistry. Neither is "safe."

Repair systems usually catch these lesions. Nucleotide excision repair, a protein complex that recognizes helix distortion, cuts out the damaged stretch and rebuilds it. But repair is imperfect and can fail. When a dimer survives into DNA replication, the copying enzyme stalls or misreads the site, inserting the wrong base. That misincorporation becomes a permanent mutation in one daughter cell. A single unrepaired lesion can seed a permanent genetic change.

The decisive step is accumulation in specific genes. Sun-exposed skin carries mutations in TP53, a gene that halts cell division when DNA is damaged or triggers self-destruction. It carries mutations that activate the BRAF pathway, which pushes cells to divide. It carries mutations that switch off tumor suppressors such as PTCH1 in basal cells or NOTCH1 in squamous cells. A mutation in one copy is usually tolerated. When both copies of a gatekeeper gene fail and an activating mutation drives growth, a clone can expand. This is why skin cancer risk rises with cumulative sun exposure rather than tracking any single sunburn.

One counterintuitive detail: a sunburn is mostly inflammation, not the cancer-causing event itself. The red, painful reaction is the immune response to damaged and dying cells. The carcinogenic insult happens at the DNA level before the skin turns red, and much of it occurs during exposures that never produce visible burning. "No burn" does not mean "no damage."

Quantified context: how much risk, how much UV

The scale of the problem is large and measurable. The American Cancer Society estimates roughly 3.5 million new cases of keratinocyte carcinoma, the basal and squamous cell cancers combined, in the United States each year, making them the most common cancers by a wide margin. Cutaneous melanoma, far less common but more dangerous, accounts for the majority of skin cancer deaths. The CDC reports that melanoma incidence has risen over recent decades in fair-skinned populations, though survival has improved substantially with earlier detection and newer therapies.

UV dose is quantified in the UV Index, a scale from 0 upward in which values of 3 or higher count as damaging to unprotected skin. A UV Index of 8 to 10 (very high) can damage fair skin in roughly 15 to 25 minutes without protection. Indoor tanning devices can emit UV at intensities far above midday summer sun; the FDA, which regulates these devices, classifies them as Class II medical devices and requires warnings about cancer risk. The World Health Organization classifies ultraviolet radiation, including tanning-bed UV, as a Group 1 carcinogen, the same category as tobacco smoke.

Table: Major skin cancer types at a glance

Cancer type Cell of origin Typical location Dominant UV signature Relative danger
Basal cell carcinoma Basal cells of epidermis Sun-exposed face, neck, ears UVB, PTCH1 mutations Low metastasis, local destruction
Squamous cell carcinoma Keratinocytes Ears, lips, hands, bald scalp UVB, TP53 mutations Moderate, can spread
Melanoma Melanocytes Backs, legs, trunk Intermittent intense UV, BRAF High, most skin cancer deaths
Merkel cell carcinoma Neuroendocrine cells Head and neck in older adults UV plus other factors High, rare
Actinic keratosis (precursor) Keratinocytes Chronically sun-damaged skin Cumulative UVB Precursor, not cancer yet

The locations matter because they reveal the mechanism. Cancers cluster on body sites that receive the most cumulative sun: the nose, the lower lip, the tops of the ears, and the bald scalp. Melanoma on the back and legs in fair-skinned people more often reflects intermittent intense exposure, especially blistering sunburns in childhood, rather than steady daily dose. Different exposure patterns drive different cancers.

Edge cases, co-factors, and who is vulnerable

Sun exposure is the main lever, but it is not the only one. Genetic repair defects multiply risk dramatically. People with xeroderma pigmentosum, who cannot repair UV lesions, develop skin cancers in childhood. Inherited mutations in CDKN2A raise melanoma risk sharply. These conditions show, in exaggerated form, the repair-failure mechanism that operates gently in everyone.

Immune status is a major co-factor. Organ transplant recipients on immunosuppressive drugs develop squamous cell carcinomas at rates many times those of the general population, often on sun-exposed skin. The immune system normally destroys cells that are becoming malignant; suppress it and those cells survive. Chronic inflammation and scarring, such as old burn scars or chronic wounds, can also spawn squamous cancers, a phenomenon sometimes called a Marjolin ulcer.

Skin type and pigmentation modulate dose at the tissue level. Melanin absorbs UV and scatters it, converting some photon energy into heat, so darker skin receives less DNA-damaging UV per unit exposure. But the protection is partial, not absolute. Skin cancers occur in all skin tones; in darker skin they are often diagnosed later, on less sun-exposed sites such as palms, soles, and under nails, which worsens outcomes. The misconception that darker skin cannot get skin cancer is dangerous.

Age and cumulative lifetime dose interact. Skin cancer incidence climbs steeply after roughly age 50 in light-skinned populations, consistent with decades of accumulated mutations. But melanoma also strikes younger adults, which fits the intermittent-exposure and childhood-burn pattern rather than purely cumulative dose.

Professional caveat: a genetic mutation burden alone does not guarantee a tumor. Most mutated cells are eliminated or stay dormant. The transition from a mutated clone to an invasive cancer involves additional steps, including evasion of immune surveillance and acquisition of blood supply. This is why two people with similar sun histories can have very different outcomes, and why "having the mutations" is not the same as "having cancer."

Red flags to check

A spot that changes in size, shape, or color over weeks to months. A sore that bleeds, crusts, or fails to heal within roughly 2 to 4 weeks. A new growth on chronically sun-damaged or previously treated skin. A mole that is asymmetric, has irregular borders, varies in color, or exceeds about 6 millimeters. Rough, scaly patches on the face, ears, or hands that persist, which may be actinic keratosis. Any new or changing lesion in darker skin, especially on palms, soles, or nails.

Timeline: from photon to lesion

Table: The time course of UV-driven skin cancer

Time scale What happens
Femtoseconds to seconds UV photon absorbed; thymine dimer or oxidative lesion forms in DNA
Minutes to hours Repair enzymes recognize and excise lesions; sunburn inflammation peaks around 4 to 24 hours
Hours to days Unrepaired lesions misreplicate; mutations fixed in daughter cells
Years to decades Mutations accumulate in gatekeeper and growth genes across repeated exposures
Years Precursor lesions such as actinic keratosis appear on sun-damaged skin
Years to decades A clone acquires enough hits to expand; carcinoma in situ may form
Months to years Invasive cancer breaches the basement membrane; melanoma can spread early
Variable Metastasis risk depends on type, depth, and immune status

The table shows why prevention is a decades-long project and why early detection compresses the dangerous interval. A melanoma that is caught when shallow has excellent survival; one that has spread to distant organs is far harder to treat.

Practical actions that change the mechanism

Use broad-spectrum sunscreen with SPF 30 or higher, reapplied every 2 hours during exposure and after swimming or sweating. SPF chiefly measures UVB protection; check for "broad spectrum" to cover UVA. Time exposure around the UV Index: when it is 3 or higher, seek shade or cover up, especially between about 10 a.m. and 4 p.m. in summer. Wear tightly woven clothing, a wide-brimmed hat, and UV-blocking sunglasses. Clothing is more reliable than sunscreen because it does not wear off. Avoid indoor tanning entirely. There is no safe dose of tanning-bed UV, and the FDA requires cancer warnings on these devices. Perform monthly self-exams using the asymmetry, border, color, diameter, and evolving criteria, and get a professional skin exam if you have many moles, a family history of melanoma, or a personal history of skin cancer. For transplant recipients and others on immunosuppression, ask the care team about heightened skin surveillance, since squamous cancers can appear quickly.

These steps target the mechanism directly: they reduce photon dose to DNA, which reduces lesion formation, which reduces mutation accumulation. None requires a diagnosis or a prescription.

Limits of what the evidence supports

Several honest limits matter. First, most UV-damaged cells never become cancer, so a given exposure's contribution to an eventual tumor cannot be traced. Prevention advice rests on population-level risk, not individual prediction. Second, the relative contributions of UVA and UVB to melanoma specifically are still debated, which is one reason broad-spectrum protection is recommended rather than UVB-only protection. Third, sunscreen trials show reduced risk of squamous cell carcinoma and actinic keratosis, but the evidence for melanoma prevention is less direct, drawn largely from observational studies and indirect endpoints. That is a real limitation, not a reason to skip protection, because the mechanistic case for reducing DNA damage is strong even where trial evidence is incomplete.

Fourth, changing clinical recommendations, pricing for specific products, and current approval status of therapies are beyond what this explainer can responsibly assert without dated sourcing. Anyone facing a suspicious lesion needs a clinician, not a general explanation. The mechanism is well established: photons damage DNA, repair fails, mutations accumulate, and a clone escapes control. That chain is what makes sun protection and early detection the two highest-leverage actions available.