When a patient has an allergy to an allergen, the body mistakes the allergen for a harmful substance.