Vaccines introduce a weakened or inactivated form of a pathogen into the body, prompting the immune system to respond. This helps the body to recognize and fight the actual pathogen if exposed in the future. For newborns, this early exposure is critical in preventing diseases that can cause severe complications or even death.