Cocaine use supports the growth of γ-proteobacteria, a common gut bacteria that consume glycine. As glycine levels become depleted mouse models exhibit a higher response to cocaine with abnormal behaviors including increased drug-induced locomotion and drug-seeking behaviors.