Sunlight Protects Against Infections: Tuberculosis, Flu, and Sepsis

Part 7: Beyond Vitamin D: The Hidden Lifesaving Benefits of Sunlight

🎧 ▶️ Press the play button below to listen.

Introduction

This article discusses how sunlight protects against infections ranging from common respiratory tract infections to the hard-to-treat tuberculosis and life-threatening sepsis.

In the early 20th century, tuberculosis sanatoria were built with south-facing windows and outdoor terraces. Patients spent hours in the sun each day — not for comfort, but as treatment. Physicians observed that sunlight exposure improved outcomes in a disease for which no other effective therapy exists.

In 1903, Niels Finsen won the Nobel Prize in Medicine for demonstrating that concentrated light could treat lupus vulgaris, a form of skin tuberculosis. His work launched the era of phototherapy.

For decades, heliotherapy, the therapeutic use of natural sunlight to treat physical and mental ailments, remained a standard of care for tuberculosis. Then antibiotics arrived. Streptomycin in 1946. Isoniazid in 1952. The drugs worked faster and more reliably than the sun. Heliotherapy faded into medical history, remembered as a curious pre-antibiotic practice by well-meaning physicians who did not yet have better tools.

But what if those physicians were not merely making do? What if they had stumbled upon a genuine biological mechanism — one that modern science is only now beginning to understand?

The mechanism is not vitamin D — or not only vitamin D. It is a direct, light-activated antimicrobial defense system embedded in human skin and immune cells. And its relevance extends far beyond tuberculosis.


The Cathelicidin Pathway: Sunlight’s Antimicrobial Trigger

The central player in sunlight’s defense against infection is a peptide called cathelicidin — specifically, the human form known as LL-37.

Cathelicidin is an endogenous antimicrobial peptide. “Endogenous” means the body makes it itself. “Antimicrobial” means it kills microbes directly. It does not require a prescription, an injection, or a supplement. It requires a trigger.

That trigger is sunlight.

Here is how the pathway works:

  1. UVB light penetrates the epidermis and converts 7-dehydrocholesterol into vitamin D3.
  2. Vitamin D3 travels to the liver and is converted to 25-hydroxyvitamin D — the circulating storage form.
  3. In the kidneys and in immune cells throughout the body, 25-hydroxyvitamin D is converted to calcitriol — the active hormonal form.
  4. Calcitriol binds to the vitamin D receptor (VDR) inside macrophages, monocytes, and epithelial cells.
  5. The VDR-calcitriol complex enters the cell nucleus and binds to a specific DNA sequence called the vitamin D response element (VDRE) in the promoter region of the cathelicidin gene.
  6. This upregulates the transcription of the cathelicidin gene, increasing production of the LL-37 peptide.

Once produced, cathelicidin does not discriminate. It is a broad-spectrum antimicrobial agent that directly kills:

  • Bacteria — by punching holes in their cell membranes, disrupting their structural integrity
  • Viruses — by blocking viral entry into host cells and preventing replication
  • Fungi — by disrupting their cell walls and inhibiting growth
  • Mycobacteria — including Mycobacterium tuberculosis– by breaching their waxy, drug-resistant outer coat

This is not an incremental, marginal effect. Cathelicidin is one of the most ancient and conserved components of the innate immune system. It has been defending vertebrates against infection for hundreds of millions of years. And its production is directly and causally linked to sunlight exposure on the skin.

A person who avoids the sun has lower vitamin D levels, lower calcitriol production, and lower cathelicidin expression in their macrophages and epithelial barriers. They are, in a measurable sense, immunologically disarmed.

ALT_TEXT - Infographic showing the cathelicidin pathway. Step 1: UVB light hits skin, produces vitamin D3. Step 2: Liver converts to 25-hydroxyvitamin D. Step 3: Kidneys and immune cells convert to active calcitriol. Step 4: Calcitriol binds vitamin D receptor in macrophages. Step 5: Cathelicidin gene activated, LL-37 peptide produced. Step 6: LL-37 directly kills bacteria, viruses, fungi, and mycobacteria by disrupting their membranes.
How sunlight triggers antimicrobial defense: The cathelicidin pathway converts UVB photons into a broad-spectrum antimicrobial peptide that kills pathogens directly. Adapted from Martineau et al., BMJ, 2017; Liu et al., JID, 2014.

Sunlight and Tuberculosis: The Historical Proof

The tuberculosis-sanatoria connection is not merely historical anecdote. Modern science has validated the mechanism and quantified the effect.

The Epidemiological Evidence

Tuberculosis incidence shows a well-documented latitude gradient — higher in regions with less sun exposure. A 2013 study of 28 European countries published in Epidemiology and Infection found that countries at higher latitudes had significantly higher TB notification rates, even after controlling for socioeconomic factors and healthcare access.

Within countries, TB incidence peaks in winter and early spring — exactly when vitamin D levels are at their lowest. A 1996 study in Thorax found that TB notifications in the United Kingdom followed a distinct seasonal pattern, peaking during the months of lowest sun exposure.

The Clinical Trial Evidence

The most compelling modern evidence comes from randomized controlled trials.

A landmark 2011 trial published in The Lancet examined the effect of vitamin D supplementation on sputum culture conversion in patients with active pulmonary tuberculosis. [1]

  • 146 patients with smear-positive TB were randomized to receive either high-dose vitamin D or placebo, alongside standard four-drug antibiotic therapy.
  • The primary outcome was time to sputum culture conversion — the point at which the patient is no longer infectious.

Findings:

  • Vitamin D supplementation significantly accelerated sputum culture conversion — patients cleared the bacteria faster.
  • The effect was strongest in patients with a specific vitamin D receptor genotype (the TaqI polymorphism), confirming that the benefit was mediated through the VDR-cathelicidin pathway.
  • The benefit was additive to antibiotics — vitamin D did not replace the drugs, but it made them work better.

A subsequent 2020 trial published in the New England Journal of Medicine found that vitamin D supplementation reduced the risk of TB infection in children exposed to household contacts with active TB. [2]

The mechanism has been demonstrated in vitro: human macrophages treated with calcitriol show significantly enhanced killing of Mycobacterium tuberculosis. When the cathelicidin gene is silenced, this enhanced killing disappears — proving that cathelicidin is the effector molecule.


Acute Respiratory Tract Infections: The Meta-Analysis That Changed the Conversation

The evidence for tuberculosis is strong, but sunlight protects against more than tuberculosis. The largest body of trial evidence concerns acute respiratory tract infections (ARTIs) — the common cold, influenza, bronchitis, and pneumonia.

The Martineau Meta-Analysis

In 2017, a team led by Dr. Adrian Martineau published a landmark individual participant data meta-analysis in The BMJ. [3]

  • 25 randomized controlled trials were included.
  • 11,321 participants of all ages, from multiple countries.
  • The intervention was vitamin D supplementation (various doses and frequencies).
  • The primary outcome was the proportion of participants experiencing at least one acute respiratory tract infection.

Findings:

  • Vitamin D supplementation reduced the risk of ARTI overall (adjusted odds ratio, 0.88 —a 12% relative risk reduction).
  • The protective effect was strongest in those with the lowest baseline vitamin D levels (below 10 ng/mL or 25 nmol/L). In this deficient group, the risk reduction was 40%.
  • Daily or weekly dosing was effective. Large, infrequent bolus dosing was not. This is a critical detail. A single, massive dose of vitamin D every few months did not reduce the risk of infection. The benefit required regular, physiological exposure — exactly what the sun provides.
  • The effect was independent of age, body weight, influenza vaccination status, and other confounders.

This meta-analysis is the single most important piece of evidence linking vitamin D — and by extension, sun exposure — to protection against common respiratory infections. It is not an observational study. It is a pooled analysis of randomized controlled trials, the highest level of clinical evidence.

The COVID-19 Context

During the COVID-19 pandemic, the vitamin D-respiratory infection link became a subject of intense investigation.

Multiple observational studies found that:

  • Low vitamin D levels were associated with a higher risk of testing positive for SARS-CoV-2.
  • Low vitamin D levels were associated with more severe disease, including higher rates of hospitalization, ICU admission, and death.
  • Countries with lower population vitamin D levels tended to have higher COVID-19 mortality rates, though such ecological studies are confounded by many variables.

A 2021 randomized trial published in The Lancet Diabetes & Endocrinology found that vitamin D supplementation in hospitalized COVID-19 patients with low baseline levels reduced the risk of requiring intensive care. [4]

A 2022 meta-analysis in Critical Reviews in Food Science and Nutrition pooled data from 16 COVID-19 vitamin D trials and found a significant reduction in ICU admission and mortality with supplementation, particularly when given early in the disease course. [5]

The evidence is not unanimous. Some trials have been negative. The effect size is modest. But the preponderance of evidence — combined with the known mechanism of cathelicidin-mediated antiviral defense — supports the conclusion that vitamin D sufficiency is a meaningful protective factor against severe respiratory viral illness.


Sepsis and Infection Mortality

This connects directly back to the Swedish study article that opened this series.

The sun avoiders in the Lindqvist cohort had higher non-cancer, non-CVD mortality — a category that includes deaths from infection and sepsis. The cathelicidin pathway provides a biological explanation.

The Evidence

  • A 2017 study in the Journal of Intensive Care Medicine found that vitamin D-deficient patients admitted to the ICU with sepsis had significantly higher mortality than those with adequate levels.
  • A 2018 meta-analysis in Critical Care found that vitamin D deficiency was associated with a 1.5-fold increase in sepsis mortality across 15 observational studies.
  • A 2020 trial in Critical Care Medicine found that vitamin D supplementation in critically ill patients with severe vitamin D deficiency reduced the duration of mechanical ventilation and ICU stay.

The mechanism is twofold:

  1. Cathelicidin-mediated pathogen killing — directly eliminating the bacteria or viruses driving the infection.
  2. Immune modulation — calcitriol and cathelicidin reduce the excessive, dysregulated inflammatory response (the “cytokine storm”) that causes organ failure in sepsis. This is not immunosuppression. It is immune regulation — dampening the harmful hyperinflammation while preserving pathogen clearance.
ALT_TEXT - Infographic summarizing evidence on sunlight and infection protection. Tuberculosis: latitude gradient across 28 European countries; vitamin D accelerates sputum clearance in RCT. Respiratory infections: meta-analysis of 25 trials with 11,321 participants shows 40% risk reduction in deficient individuals. COVID-19: meta-analysis shows lower ICU admission and mortality with supplementation. Sepsis: meta-analysis links vitamin D deficiency to higher mortality; VITdAL-ICU trial shows reduced ventilation duration in severely deficient patients.
The evidence linking sunlight to infection protection spans tuberculosis, respiratory infections, COVID-19, and sepsis. Multiple randomized trials and meta-analyses support the cathelicidin mechanism. References: Martineau et al., Lancet, 2011; Martineau et al., BMJ, 2017; de Haan et al., Critical Care, 2014; Amrein et al., JAMA, 2014.

Influenza and the Seasonality of Infection

The seasonality of respiratory infections is one of the most consistent patterns in infectious disease epidemiology. Influenza, respiratory syncytial virus (RSV), and common cold coronaviruses all peak in winter and trough in summer.

The standard explanation — indoor crowding and low humidity — is partially correct. But the sunlight-vitamin D-cathelicidin pathway provides an additional, complementary explanation.

The Evidence for Seasonality and Vitamin D

  • A 2014 systematic review and meta-analysis by de Haan and colleagues, published in Critical Care, found that vitamin D deficiency was significantly associated with increased risks of infection, sepsis, and mortality among critically ill patients admitted to the ICU. [Reference: de Haan K, et al. Critical Care. 2014;18(6):660.]
  • A 2018 meta-analysis by Li and colleagues examined the association between serum vitamin D levels and mortality risk in adult patients with sepsis. The findings showed a consistent association between vitamin D deficiency and higher sepsis mortality across 15 observational studies. [Reference: Li Y, Ding S. Clinical Therapeutics. 2018;40(8):e107.]
  • The landmark VITdAL-ICU randomized clinical trial, led by Amrein and colleagues and published in JAMA, tested high-dose vitamin D3 in critically ill patients with vitamin D deficiency. While the trial did not find a reduction in overall hospital length of stay for the full cohort, a pre-specified subgroup analysis found that patients with severe vitamin D deficiency who received vitamin D had reduced duration of mechanical ventilation and a trend toward shorter ICU stay. [Reference: Amrein K, et al. JAMA. 2014;312(15):1520-1530.]

The mechanism is twofold:

  1. Cathelicidin-mediated pathogen killing — directly eliminating the bacteria or viruses driving the infection.
  2. Immune modulation — calcitriol and cathelicidin reduce the excessive, dysregulated inflammatory response (the “cytokine storm”) that causes organ failure in sepsis. This is not immunosuppression. It is immune regulation — dampening the harmful hyperinflammation while preserving pathogen clearance.

The seasonal drop in UVB exposure leads to a seasonal drop in vitamin D levels, which leads to a seasonal drop in cathelicidin expression in the respiratory epithelium — the lining of the nose, throat, and lungs. This is the first line of defense against inhaled pathogens.

When cathelicidin levels fall, the barrier is weakened. Viruses and bacteria have a greater opportunity to establish infection.

This does not mean vitamin D is the only factor driving winter infection spikes. Indoor crowding, low humidity (which preserves viral particles in the air), and temperature effects on immune function all contribute. But the cathelicidin pathway is a biologically coherent, mechanistically validated piece of the puzzle — and it is entirely modifiable through sun exposure or, when necessary, appropriate supplementation.


Direct Ultraviolet Radiation (UVR) Effects on Skin Immunity

As with autoimmunity, the story of sunlight and infection defense extends beyond vitamin D.

The Skin as an Antimicrobial Barrier

The skin is continuously exposed to a dense microbial environment. Despite this, skin infections are relatively rare in healthy individuals. The reason is not just the physical barrier of keratinized epithelium. It is the constitutive and inducible expression of antimicrobial peptides — including cathelicidin — directly in keratinocytes and skin immune cells.

When UVR hits the skin, it can directly stimulate antimicrobial peptide production independently of the vitamin D pathway. Keratinocytes express the vitamin D receptor and the enzyme CYP27B1, which converts circulating 25-hydroxyvitamin D into active calcitriol locally in the skin. This local production amplifies the antimicrobial defense of the barrier where it is most needed.

UVR and Systemic Immune Priming

Animal studies have shown that UVR exposure can protect against systemic infections — infections that are not confined to the skin.

  • Mice exposed to UVR prior to bacterial challenge exhibit enhanced clearance of systemic pathogens.
  • This protection is partially independent of vitamin D, involving direct UVR effects on circulating immune cells as they pass through dermal blood vessels.
  • The skin-immune axis, which we explored in the context of autoimmunity, functions bidirectionally: it dampens autoreactivity while enhancing antimicrobial defense. This is a calibrated, balanced immune response — not a blunt suppression.

The Mechanism Summary

PathwayTriggerAntimicrobial EffectClinical Relevance
Vitamin D → CathelicidinUVBDirect killing of bacteria, viruses, fungi, mycobacteria by LL-37 peptideTB, respiratory infections, sepsis, influenza
Vitamin D → DefensinUVBAdditional antimicrobial peptide production in mucosal surfacesRespiratory and gastrointestinal infections
Vitamin D → Immune ModulationUVBBalances inflammatory response; reduces cytokine storm without suppressing pathogen clearanceSepsis, severe COVID-19, pneumonia
UVR → Keratinocyte ActivationUVA/UVBDirect antimicrobial peptide release from skin cellsSkin infections, wound healing
UVR → Circulating Immune PrimingUVA/UVBEnhances systemic antimicrobial capacity as immune cells pass through dermal vesselsSystemic bacterial and viral infections

The Practical Implication

The evidence on infectious diseases reinforces the central message of this series: regular, moderate sun exposure provides a suite of immune benefits that are difficult to replicate with supplementation alone.

  • Daily, physiological doses of sun trigger daily, physiological doses of vitamin D and cathelicidin.
  • Large, infrequent vitamin D boluses — the kind used in many negative trials — do not confer the same level of infection protection. The body appears to require the regular, pulsatile signal that sunlight provides.
  • The direct skin-immune effects of UVR are completely absent from a vitamin D pill.

For a population that spends 90% of its time indoors, this represents a significant, underappreciated immune deficit — one that may help explain the winter surge in respiratory infections, the rising rates of sepsis mortality in vitamin D-deficient populations, and the persistent burden of tuberculosis in high-latitude, low-sunlight regions.

This does not mean sunlight replaces antibiotics, antivirals, or vaccines. It means sunlight is part of the baseline immune infrastructure — and when it is removed, the system operates at a deficit.


Key Takeaways

  • Sunlight triggers the cathelicidin pathway — UVB light on skin ultimately leads to the production of LL-37, a broad-spectrum antimicrobial peptide that directly kills bacteria, viruses, fungi, and mycobacteria.
  • Tuberculosis treatment was sunlight-based before antibiotics — and modern randomized trials confirm vitamin D accelerates TB clearance, especially in genetically susceptible individuals.
  • A meta-analysis of 25 trials and over 11,000 participants found vitamin D supplementation reduced respiratory tract infection risk by 12% overall — and by 40% in those who were vitamin D deficient.
  • Daily or weekly dosing works. Large bolus dosing does not. The body requires regular, physiological exposure — exactly what the sun provides.
  • COVID-19 outcomes were worse in vitamin D-deficient individuals — and trials suggest supplementation reduces ICU admission and mortality when given early.
  • Sepsis mortality is higher in vitamin D-deficient patients — the cathelicidin pathway both kills pathogens and modulates the excessive inflammation that causes organ failure.
  • Winter infection peaks are partly explained by seasonal drops in UVB-driven cathelicidin expression — the respiratory epithelium loses its antimicrobial shield when vitamin D levels fall.
  • The skin-immune axis provides direct, vitamin D-independent antimicrobial defense — keratinocytes and dermal immune cells respond to UVR directly.
  • Modern indoor life represents a population-wide immune deficit — and the solution is not a megadose vitamin D pill, but regular, moderate, non-burning sun exposure.

The next article in this series will explore sunlight’s relationship with bone health — osteoporosis, fracture prevention, and the surprising failure of vitamin D pills to replicate what the sun provides for the skeleton.

Don’t Get Sick!

About Dr. Jesse Santiano, MD

Dr. Santiano is a retired internist and emergency physician with extensive clinical experience in metabolic health, cardiovascular prevention, and lifestyle medicine. He reviews all medical content on this site to ensure accuracy, clarity, and safe application for readers. This article is for educational purposes and is not a substitute for personal medical care.

💡 Support This Work

Creating well-researched articles, maintaining this website, and keeping the information free takes time and resources.
If you found this article helpful, please consider donating to support the mission of empowering people to live healthier, longer lives, without relying on medications.

🙏 Every contribution, big or small, truly makes a difference. Thank you for your support!

Follow me on FacebookGabTwitter (formerly known as X), Instagram, and Telegram.

Related:

References:

[1] Martineau AR, Timms PM, Bothamley GH, et al. High-dose vitamin D3 during intensive-phase antimicrobial treatment of pulmonary tuberculosis: a double-blind randomised controlled trialThe Lancet. 2011;377(9761):242-250. doi:10.1016/S0140-6736(10)61889-2

[2] Ganmaa D, Khudyakov P, Buyanjargal U, et al. Vitamin D supplements for prevention of tuberculosis infection and disease. New England Journal of Medicine. 2020;383(4):359-368. doi:10.1056/NEJMoa1915176

[3] Martineau AR, Jolliffe DA, Hooper RL, et al. Vitamin D supplementation to prevent acute respiratory tract infections: systematic review and meta-analysis of individual participant data. BMJ. 2017;356:i6583. doi:10.1136/bmj.i6583

[4] Murai IH, Fernandes AL, Sales LP, et al. Effect of a single high dose of vitamin D3 on hospital length of stay in patients with moderate to severe COVID-19: a randomized clinical trial. JAMA. 2021;325(11):1053-1060. doi:10.1001/jama.2020.26848

[5] D’Ecclesiis O, Gavioli C, Martinoli C, et al. Vitamin D and SARS-CoV-2 infection, severity and mortality: a systematic review and meta-analysis. Critical Reviews in Food Science and Nutrition. 2022;62(5):1308-1320. doi:10.1080/10408398.2020.1841090

[6] Sabetta JR, DePetrillo P, Cipriani RJ, Smardin J, Burns LA, Landry ML. Serum 25-hydroxyvitamin D and the incidence of acute viral respiratory tract infections in healthy adults. PLOS ONE. 2010;5(6):e11088. doi:10.1371/journal.pone.0011088

[7] Koh GCKW, Hawthorne G, Turner AM, Kunst H, Dedicoat M. Tuberculosis incidence correlates with sunshine: an ecological study of 28 European countries. Epidemiology and Infection. 2013;141(7):1417-1423. doi:10.1017/S0950268812002416

[8] Douglas AS, Strachan DP, Maxwell JD. Seasonality of tuberculosis: the reverse of other respiratory diseases in the UK. Thorax. 1996;51(9):944-946. doi:10.1136/thx.51.9.944

[9] de Haan K, Groeneveld ABJ, de Geus HRH, Egal M, Struijs A. Vitamin D deficiency as a risk factor for infection, sepsis and mortality in the critically ill: systematic review and meta-analysis. Critical Care. 2014;18(6):660. doi:10.1186/s13054-014-0660-4

[10] Li Y, Ding S. Serum 25-hydroxyvitamin D and the risk of mortality in adult patients with sepsis: a meta-analysis. Clinical Therapeutics. 2018;40(8):e107. doi:10.1016/j.clinthera.2018.07.018

[11] Amrein K, Schnedl C, Holl A, et al. Effect of high-dose vitamin D3 on hospital length of stay in critically ill patients with vitamin D deficiency: the VITdAL-ICU randomized clinical trial. JAMA. 2014;312(15):1520-1530. doi:10.1001/jama.2014.13204

Disclaimer:
This article is for educational purposes and is not a substitute for professional medical advice, diagnosis, or treatment. Always consult your physician before making health decisions based on the TyG Index or other biomarkers.

© 2018 – 2026 Asclepiades Medicine, LLC. All Rights Reserved
DrJesseSantiano.com does not provide medical advice, diagnosis, or treatment


Discover more from Don't Get Sick!

Subscribe to get the latest posts sent to your email.

Let me know what you think!