Cerebral edema or cerebral oedema is excess accumulation of fluid in the intracellular or extracellular spaces of the brain.