The short answer is that skin makes vitamin D when ultraviolet B light from sunlight reaches it. That matters because the skin is not just a covering; it is the place where this first step of vitamin D production begins.
This process does not happen in isolation. The source says protective behaviour such as sunscreen use changes how much ultraviolet light gets through the skin, so the efficiency of vitamin D synthesis can change too.
Other everyday factors can shift the balance as well. Time spent indoors, clothing coverage, and work patterns all reduce opportunities for skin based vitamin D production, and air pollution can further reduce the ultraviolet B that reaches the skin.
The skin is also an active organ in its own right. It renews itself, helps manage microbes and irritation, and uses vitamin D signalling as part of that wider barrier function. So the answer is not just that sunlight starts vitamin D production, but that the skin also responds to vitamin D as part of its normal biology.
Commentary
Does sunscreen stop vitamin D from being made in the skin?
No. The source says sunscreen changes ultraviolet penetration and can affect how efficient vitamin D synthesis is, but it does not say that production stops completely.
What else changes how much vitamin D skin can make?
The source points to indoor living, clothing coverage, occupational patterns, and environmental conditions such as airborne particles that scatter or absorb ultraviolet B.
Is the skin only making vitamin D, or does it also use it?
It does both. The source says the skin initiates vitamin D synthesis and also responds to vitamin D signalling through receptors in skin cells and immune cells.
Why does the skin need vitamin D signalling at all?
The source says vitamin D helps coordinate barrier integrity, cell renewal, and immune balance, so the skin can stay protective without becoming overly reactive.

