Vitamin D may help with eczema by strengthening the skin barrier and helping prevent infection.  People can get vitamin D from sun exposure, certain foods, or supplements.