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.