Glycogen is present in the brain at much lower concentrations than in muscle or liver. However, by characterizing an animal depleted of brain glycogen, we have shown that the polysaccharide plays a key role in learning capacity and in activity-dependent changes in hippocampal synapse strength. Since glycogen is essentially found in astrocytes, the diverse roles proposed for this polysaccharide in the brain have been attributed exclusively to these cells. However, we have demonstrated that neurons have an active glycogen metabolism that contributes to tolerance to hypoxia. However, these cells can store only minute amounts of glycogen, since the progressive accumulation of this molecule leads to neuronal loss. Loss-of-function mutations in laforin and malin cause Lafora disease. This condition is characterized by the presence of high numbers of insoluble polyglucosan bodies, known as Lafora bodies, in neuronal cells. Our findings reveal that the accumulation of this aberrant glycogen accounts for the neurodegeneration and functional consequences, as well as the impaired autophagy, observed in models of this disease. Similarly glycogen synthase is responsible for the accumulation of corpora amylacea, which are polysaccharide-based aggregates present in the neurons of aged human brains. Our findings change the current view of the role of glycogen in the brain and reveal that endogenous neuronal glycogen metabolism is important under stress conditions and that neuronal glycogen accumulation contributes to neurodegenerative diseases and to aging-related corpora amylacea formation.