Given the task definition and input, reply with output. Given a scientific passage and an answer, generate a question for the given answer.

Passage: Allergies occur when the immune system attacks harmless substances that enter the body from the outside. Answer: allergies
What occurs when the immune system attacks harmless substances that enter the body from the outside?