An allergic reaction occurs when cells in the immune system interpret a foreign substance or allergen as harmful. The immune system overreacts to these allergens and produces histamine, which is a chemical that causes allergy symptoms, such as inflammation, sneezing, and coughing.