Allergies occur when your immune system reacts to a foreign substance or a food by thinking it is a dangerous or foreign substance, when it does not cause that reaction in most other people. Examples include sneezing or breaking out in hives when exposed to pollen.