The brain is (on the inside and outside) surrounded by cerebrospinal fluid. The exhange of substances between blood and cerebrospinal fluid is (with the exception of CO2, O2 and H2O) limited by the blood-brain barrier.
Some substances can pass through it with the help of carriers, others cannot, which is important in drug utilization.