The cerebrospinal fluid (CSF) is produced by filtration from blood capillaries located in tissue known as the choroid plexus which lines the ventricles. Filtration forces water, electrolytes, and nutrients out of the blood. These substances are then processed by the ependymal cells which release them into the cerebrospinal fluid. At the same time waste products are removed from the CSF and released into the blood.