Food allergy - Causes. Causes of a food allergy. A food allergy is caused by your immune system handling harmless proteins in certain foods as a threat. It releases a number of chemicals, which trigger an allergic reaction. The immune system. The immune system protects the body by producing specialised proteins called antibodies.