Allergies occur when the immune system overreacts to harmless substances like pollen, pet dander, or mold.