An allergy is an immune response to a typically harmless substance, identifying it as a threat. An autoimmune disease occurs when the immune system mistakenly attacks the body's own tissues, viewing them as foreign.