Sunlight causes skin cancer by sending ultraviolet (UV) radiation into your skin, where it physically damages the DNA inside skin cells. When that damage hits the right genes in the right way, a cell can begin dividing uncontrollably. This isn’t a vague, slow process. UV light creates specific, well-understood errors in your DNA’s genetic code, and your body’s ability to repair those errors determines whether a normal cell eventually becomes cancerous.
How UV Light Reaches Your Skin Cells
Sunlight contains two types of ultraviolet radiation that matter for skin cancer: UVA and UVB. They differ in wavelength, and that difference determines how deep each one penetrates. UVB radiation, the shorter wavelength, reaches roughly 20 to 60 micrometers into the skin, mostly affecting the outermost layer (the epidermis). UVA radiation penetrates deeper, reaching up to about 135 micrometers depending on the body site, which means it can affect cells well below the surface.
Your skin has some built-in defenses. The outermost dead layer of skin, the stratum corneum, is rich in a protein called keratin that acts as a natural UVB filter. On your forearm, this layer is only about 10 micrometers thick, offering limited protection. On the palm of your hand, it can be several hundred micrometers thick, which is why palms rarely sunburn. Melanin, the pigment that gives skin its color, provides additional filtering. In lighter-skinned people, 56% of the skin’s melanin is concentrated in the deepest part of the epidermis, right where the most vulnerable cells live. That positioning matters because the cells in that basal layer are the ones actively dividing, and dividing cells are the most susceptible to cancer-causing mutations.
What UV Light Does to Your DNA
When a UV photon strikes a strand of DNA, it can force two neighboring building blocks (called bases) to bond together in a way they’re not supposed to. The most common result is something called a pyrimidine dimer, where two adjacent “letters” in the DNA code fuse into a single, distorted unit. This is a direct, physical change to the molecule, not a gradual chemical process. It happens the instant the photon’s energy is absorbed.
This fused dimer warps the DNA strand, which means the cell’s machinery can no longer read that section of the genetic code correctly. When the cell tries to copy its DNA before dividing, it may insert the wrong base across from the dimer, creating a permanent mutation. If that mutation lands in a gene that controls cell growth or division, the cell can lose its normal brakes. One mutation usually isn’t enough. Cancer typically requires multiple mutations accumulating over years or decades, which is why skin cancer risk rises with cumulative sun exposure. Each sunburn and each unprotected hour outdoors adds to a running total of DNA errors.
Your cells do have a built-in repair system that can detect and fix these dimers. Specialized proteins scan DNA strands, cut out the damaged section, and rebuild it using the undamaged strand as a template. But this system isn’t perfect. It can be overwhelmed by heavy UV exposure, and it becomes less efficient as you age. People born with defects in these repair genes, such as those with a condition called xeroderma pigmentosum, develop skin cancers at dramatically higher rates, which powerfully illustrates how central DNA repair is to preventing cancer.
UV Light Also Disables Your Skin’s Immune Defense
DNA damage alone doesn’t tell the whole story. Your skin contains a network of immune cells called Langerhans cells that act as guards, constantly surveying for abnormal or damaged cells and flagging them for destruction. UV radiation disrupts this surveillance system in two ways.
First, UV exposure causes Langerhans cells to physically leave the epidermis. Some migrate to nearby lymph nodes, while others die outright through programmed cell death. The result is a gap in the network of immune “guards” patrolling your skin. Second, and perhaps more insidiously, Langerhans cells that sustain DNA damage but survive don’t behave normally. Instead of alerting the immune system to threats, they travel to lymph nodes and essentially teach immune cells to tolerate abnormal cells rather than attack them. This means UV radiation doesn’t just create potentially cancerous cells; it simultaneously makes your immune system less likely to catch and eliminate them.
UV exposure also triggers surrounding skin cells to release signaling molecules that further suppress the local immune response. This combined effect, creating mutations while lowering immune defenses, is what makes UV radiation such an effective carcinogen.
UVA and UVB Cause Damage Differently
UVB is the primary cause of sunburn and the direct DNA damage described above. It’s the wavelength most responsible for the pyrimidine dimers that lead to mutations. UVB intensity varies significantly with time of day, season, and latitude, peaking between 10 a.m. and 2 p.m.
UVA was long considered less dangerous, but that view has changed. UVA penetrates deeper into the skin and generates damage through a different mechanism: it creates reactive oxygen molecules (free radicals) that attack DNA, proteins, and cell membranes indirectly. UVA also penetrates clouds and glass, meaning you’re exposed to it even on overcast days or while driving. It’s present at relatively constant intensity throughout daylight hours and across seasons, so your cumulative UVA exposure over a lifetime is substantial. Both types contribute to skin cancer, but through different molecular pathways.
How Quickly Damage Accumulates
The speed at which UV radiation damages your skin depends on intensity, measured by the UV index. At a UV index of 3 to 5 (a typical partly cloudy day in spring), fair-skinned people can burn in less than 20 minutes. At a UV index of 8 to 10, common during summer in much of the U.S., that drops to less than 10 minutes. At 11 or above, which occurs in tropical and high-altitude locations, a fair-skinned person can burn in under 5 minutes. These numbers are based on fair skin that burns easily, but DNA damage begins before visible sunburn appears. You don’t need to turn red for mutations to accumulate.
The cumulative toll matters enormously. Having five or more sunburns over your lifetime more than doubles your risk of melanoma, the deadliest form of skin cancer. A single blistering sunburn during childhood or adolescence also more than doubles the risk. Melanoma accounts for an estimated 112,000 new diagnoses in the U.S. each year and roughly 8,510 deaths, representing 5.3% of all new cancer cases. Non-melanoma skin cancers (basal cell and squamous cell carcinomas) are far more common, numbering in the millions annually, though they’re rarely fatal.
Why Some People Are More Vulnerable
Skin cancer risk isn’t distributed equally. People with less melanin in their skin have less natural UV filtering, which means more radiation reaches the DNA in their basal cells. Red and blond hair, light eyes, and skin that burns rather than tans are all markers of lower melanin protection. But darker-skinned individuals are not immune. They develop skin cancers too, often diagnosed at later stages because the risk is underestimated.
Geography and behavior also play roles. Living at higher altitudes or closer to the equator means more intense UV exposure year-round. Using tanning beds delivers concentrated UV radiation directly to the skin, bypassing the atmosphere’s natural filtering. And certain medications, including some antibiotics and acne treatments, increase photosensitivity, meaning your skin sustains more damage from the same amount of sun.
How Sunscreen Interrupts the Process
Sunscreen works by absorbing or reflecting UV photons before they reach living skin cells. SPF 30 blocks about 97% of UVB rays, allowing roughly 3% through. SPF 50 blocks about 98%, letting 2% through. The difference between SPF 30 and 50 is small in absolute terms, but no sunscreen blocks 100%. The key factor most people overlook isn’t the SPF number but application thickness and reapplication frequency. Most people apply only a quarter to half the amount used in testing, which dramatically reduces the actual protection.
Broad-spectrum sunscreens protect against both UVA and UVB, which matters because standard SPF ratings only measure UVB protection. Clothing, shade, and timing (avoiding peak UV hours) reduce exposure through a different mechanism entirely: they simply prevent photons from reaching your skin in the first place. Since every photon that reaches a DNA molecule carries the potential to create a mutation, reducing total exposure across a lifetime is the most direct way to lower skin cancer risk.

