The blood-brain barrier is formed by capillary endothelial cells. It allows the passage of water, some gases, and lipid-soluble molecules by passive diffusion. It also allows the selective transport of molecules such as glucose and amino acids which are crucial to nerve function. On the other hand, the blood-brain barrier may prevent the entry of neurotoxins by means of an active transport mechanism. 