N-acylethanolamines (NAEs), which include the endocannabinoid anandamide, represent an important family of signaling lipids in the brain. The lack of chemical probes that modulate NAE biosynthesis in living systems hamper the understanding of the biological role of these lipids. Using a high-throughput screen, chemical proteomics and targeted lipidomics, we report here the discovery and characterization of LEI-401 as a CNS-active N-acylphosphatidylethanolamine phospholipase D (NAPE-PLD) inhibitor. LEI-401 reduced NAE levels in neuroblastoma cells and in the brain of freely moving mice, but not in NAPE-PLD KO cells and mice, respectively. LEI-401 activated the hypothalamus-pituitary-adrenal axis and impaired fear extinction, thereby emulating the effect of a cannabinoid CB1 receptor antagonist, which could be reversed by a fatty acid amide hydrolase inhibitor. Our findings highlight the distinctive role of NAPE-PLD in NAE biosynthesis in the brain and suggest the presence of an endogenous NAE tone controlling emotional behavior.