The mediation analysis showed that IL-1β and IL-18 could explain 25.4 and 17.5% of effect of the risk of cognitive impairment related to 25(OH)D3 deficiency. The gene discussed is IL18; the disease is Cognitive impairment.