Histamines are organic nitrogenous compounds involved in local immune responses, regulating physiological function in the gut, and acting as neurotransmitters. They play a crucial role in allergic reactions and are a target for antihistamine drugs used to alleviate allergy symptoms.