Studies have shown that fruits and vegetables provide nutrients—like beta-carotene, vitamin C, and vitamin E—that can boost immune function. Because many vegetables, fruits, and other plant-based foods are also rich in antioxidants, they help reduce oxidative stress.