The mechanism involved special white blood cells called CD4+ helper T cells. When a dangerous material like a bacterium or a virus is detected in the body, immune cells immediately stimulate these special cells.