Our results showed that vitamin D3 significantly inhibited the protein expression level of TNF‐α, suggesting that vitamin D3 exerted anti‐inflammatory effects on diabetes‐induced cognitive impairment. Here, TNF is linked to Cognitive impairment.