Microglia are thought to play important roles in the maintenance of neuronal circuitry and the regulation of behavior. We found that the cortical microglia contain an intrinsic molecular clock and exhibit a circadian expression of cathepsin S (CatS), a microglia-specific lysosomal cysteine protease in the brain. The genetic deletion of CatS causes mice to exhibit hyperlocomotor activity and removes diurnal variations in the synaptic activity and spine density of the cortical neurons, which are significantly higher during the dark (waking) phase than the light (sleeping) phase. Furthermore, incubation with recombinant CatS significantly reduced the synaptic activity of the cortical neurons. These results suggest that CatS secreted by microglia during the dark-phase decreases the spine density of the cortical neurons by modifying the perisynaptic environment, leading to downscaling of the synaptic strength during the subsequent light-phase. Disruption of CatS therefore induces hyperlocomotor activity due to failure to downscale the synaptic strength.