Getting enough sleep, eating a balanced diet rich in fruits, vegetables, and whole grains, exercising regularly, managing stress, and maintaining good hygiene can all contribute to a strong immune system.