To facilitate the genetic study of sleep, we documented that rest behavior in Drosophila melanogaster is a sleep-like state. The animals choose a preferred location, become immobile for periods of up to 157 min at a particular time in the circadian day, and are relatively unresponsive to sensory stimuli. Rest is affected by both homeostatic and circadian influences: when rest is prevented, the flies increasingly tend to rest despite stimulation and then exhibit a rest rebound. Drugs acting on a mammalian adenosine receptor alter rest as they do sleep, suggesting conserved neural mechanisms. Finally, normal homeostatic regulation depends on the timeless but not the period central clock gene. Understanding the molecular features of Drosophila rest should shed new light on the mechanisms and function of sleep.