Scientists have revealed neuronal mechanisms underlying the formation and retrieval of cocaine use-associated memories. Their research sheds light on how drug addiction develops and reveals pathways that can be exploited for the development of strategies to treat cocaine addiction.