The immune system in children matures over time. Newborns receive some passive immunity from their mothers, but they start developing their own immune responses as they grow. Vaccinations play a critical role in this process by exposing the immune system to antigens, which helps build immunity against various infectious diseases. Proper nutrition is also essential for a functioning immune system.