Abstract Animals undertake specific behaviors before sleep. Little is known about whether these innate behaviors, such as nest building, are actually an intrinsic part of the sleep-inducing circuitry. We found, using activity-tagging genetics, that mouse prefrontal cortex (PFC) somatostatin/GABAergic (SOM/GABA) neurons, which become activated during sleep deprivation, induce nest building when opto-activated. These tagged neurons induce sustained global NREM sleep if their activation is prolonged metabotropically. Sleep-deprivation-tagged PFC SOM/GABA neurons have long-range projections to the lateral preoptic (LPO) and lateral hypothalamus (LH). Local activation of tagged PFC SOM/GABA terminals in LPO and the LH induced nesting and NREM sleep respectively. Our findings provide a circuit link for how the PFC responds to sleep deprivation by coordinating sleep preparatory behavior and subsequent sleep.