The body's own mechanism for defence against foreign substances or organisms. A distinction is made between a humoral immunity by specific antibodies or non-specific complement systems (properdin, lysozyme) and a cell-bound specific or non-specific immunity.