Although accumulating evidence suggests a role of the gut microbiome in the response to antidepressant medications, its mechanistic basis is largely unknown. We performed a comprehensive analysis and presented an up-to-date atlas of the relationship between antidepressants and gut microbiome. The main findings were: 1. Treatment with antidepressants increases the abundance of anti-inflammatory species (e.g., Bifidobacterium) and decreases that of pro-inflammatory species (e.g., Escherichia_coli); 2. The nature of microbiome at baseline and of its changes following the start of treatment can be used to predict the efficacy of individual antidepressants. 3. Two sets of bacterial taxa (termed "Microhancers" and "Microlencers") are candidate pre-treatment targets for optimizing the therapeutic response. Two mechanisms that appear to underlie the modulation of the antidepressant treatment response are biotransformation and bioaccumulation, and these appear to be mediated by specific bacterial strains. These findings could support the personalisation of treatment by informing the selection of the best antidepressant for each individual. In addition, they suggest that the therapeutic response to antidepressants may be optimised by manipulating the gut microbiome prior to treatment.