Many neurons show daily rhythms in gene expression and electrical activity. Erik Herzog discusses the molecular and cellular events that underlie this rhythmicity, and shows how the robustness and plasticity of the circadian system allow the brain to adapt to environmental conditions.