Chemically, histamine is 2-(4-imidazolyl)ethylamine and has the formula C5H9N3. Histamine is synthesized by the decarboxylation of the amino acid histidine, a reaction catalyzed by the enzyme L-histidine decarboxylase. It is a hydrophilic vasoactive amine (thus the name).
Some forms of food poisoning are due to conversion of histidine into histamine in spoiled foodstuffs, such as fish.