A histamine reaction occurs when the immune system overreacts to a foreign substance, leading to the release of histamine from mast cells and basophils. This release can cause a range of symptoms from mild, such as itching and hives, to severe, including anaphylaxis, which is a life-threatening condition.