Foods like fruits, veggies, nuts, seeds, and legumes are full of nutrients. They have antioxidants that fight off harmful pathogens. The fiber in these foods also helps your gut microbiome, boosting your immunity.