An allergic reaction happens when your immune system overreacts to something that should be harmless. Whether that happens can be thanks to your genes, your environment or a combination.