Histamine is an organic nitrogenous compound involved in local immune responses. It also regulates physiological function in the gut, and acts as a neurotransmitter. Histamine is involved in the inflammatory response, where tissues get red, swollen and painful.
As part of an immune response to foreign pathogens, histamine is produced by basophils and by mast cells found in nearby connective tissues. Histamine increases the permeability of the capillaries to white blood cells and some proteins. The cells get through the walls of the tiny blood vessels to get at pathogens in the infected tissues.
Histamine in water exists as two tautomers in equilibrium, differing by the position of the nitrogen atom: