Warts are caused by the human papillomavirus (HPV) and there is no direct evidence that a nutrient deficiency causes them. However, a weakened immune system can increase the risk of developing warts. Essential vitamins and minerals such as vitamin C and zinc support a strong immune system. Practicing good hygiene, avoiding skin-to-skin contact with infected individuals, and maintaining a healthy lifestyle can reduce the risk of developing warts.