The body's immune system has many mechanisms to defend against unwanted foreign substances (viruses, bacteria, cancer cells, etc.), including antibodies that recognize and destroy the substances.
The immune system typically recognizes, attacks, and destroys foreign cells or substances that may cause disease.