The hypnogenic properties of cannabis have been recognized for centuries, but endogenous cannabinoid (endocannabinoid) regulation of vigilance states is poorly characterized. We report findings from a series of experiments in mice measuring sleep with polysomnography after various systemic pharmacological manipulations of the endocannabinoid system. Rapid, unbiased scoring of vigilance states was achieved using an automated algorithm that we devised and validated. Increasing endocannabinoid tone with a selective inhibitor of monoacyglycerol lipase (JZL184) or fatty acid amide hydrolase (AM3506) produced a transient increase in non-rapid eye movement (NREM) sleep due to an augmentation of the length of NREM bouts (NREM stability). Similarly, direct activation of...