The DTaP vaccine contains inactivated toxins (toxoids) produced by the bacteria that cause diphtheria and tetanus, as well as inactivated components of the Bordetella pertussis bacterium. By introducing these components into the body, the immune system is stimulated to produce antibodies against the bacteria without causing the diseases themselves. This process, known as immunization, helps build immunity and provides long-term protection.