Vaccines are biological preparations that provide immunity against specific infectious diseases. They typically contain an agent resembling a disease-causing microorganism, which stimulates the body’s immune system to recognize and fight the pathogen if encountered later.