A method is provided that includes implanting a first electrode at a first site in a brain of a subject suffering from hydrocephalus, and a second electrode at a second site in the subject. The hydrocephalus is treated by electroosmotically driving fluid out of the first site, by applying a treatment voltage between the first and the second electrodes.