A food allergy is an abnormal response to a food. It is triggered by your body's immune system. The immune system responds to a harmless food as if it were a threat. It treats a protein found in the food as something harmful to the body.