Sleep is one of the few major whole-organ phenomena for which no function and no underlying mechanism have been conclusively demonstrated. Sleep could result from global changes in the brain during wakefulness or it could be regulated by specific loci that recruit the rest of the brain into the electrical and metabolic states characteristic of sleep. Here we address this issue by exploiting the genetic tractability of the fruitfly, Drosophila melanogaster, which exhibits the hallmarks of vertebrate sleep. We show that large changes in sleep are achieved by spatial and temporal enhancement of cyclic-AMP-dependent protein kinase (PKA) activity specifically in the adult mushroom bodies of Drosophila. Other manipulations of the mushroom bodies, such as electrical silencing, increasing excitation or ablation, also alter sleep. These results link sleep regulation to an anatomical locus known to be involved in learning and memory.