An allergy is an abnormal immune response to a substance (allergen) that is usually harmless, causing symptoms ranging from mild to severe. This hypersensitivity occurs when the immune system mistakenly identifies a benign substance as a threat, leading to the activation of specific T cell subsets and other immune components.