Process whereby the immune system reacts against the body's own tissues. autoimmunity may produce or be caused by autoimmune diseases.