Despite decades of research, the fundamental biological purposes of sleep and dreaming remain incompletely understood. Current evidence indicates that sleep plays essential roles in synaptic homeostasis, circuit restoration and memory consolidation. However, these processes are generally considered independently rather than as components of a unified functional model. This article proposes an...