Insufficient nutrition is the most common cause of weakened immunity in kids. Deficiencies of vitamin C, vitamin D, zinc, and protein can hamper immune function. Other causes include lack of sleep, physical inactivity, obesity, chronic stress, and diseases like HIV or cancer that impair the immune system.