Histamine plays several vital roles in the body. It is crucial in immune responses, where it contributes to inflammation and the allergic response. Additionally, histamine acts as a neurotransmitter in the brain, influencing the sleep-wake cycle and cognitive functions. In the stomach, it stimulates the secretion of gastric acid, aiding digestion. The balance of histamine is maintained by enzymes such as diamine oxidase (DAO) and histamine-N-methyltransferase, which degrade excess histamine.