Anaphylaxis is the result of your body's immune system overreacting to a harmless substance, such as food. Substances that trigger allergic reactions are known as allergens. Anaphylaxis usually develops within minutes of contact with an allergen, but sometimes the reaction can happen up to 4 hours later.