The gut microbiota, acting via the gut-brain axis, modulates key neurobiological systems that are dysregulated in stress-related disorders. Preclinical studies show that the gut microbiota exerts an influence over neuroimmune and neuroendocrine signaling pathways, in addition to epigenetic modification, neurogenesis, and neurotransmission. In humans, preliminary evidence suggests that the gut microbiota profile is altered in depression. The full impact of microbiota-based treatments, at different neurodevelopmental time points, has yet to be fully explored. The integration of the gut microbiota, as a mediator, in the complex trajectory of depression, may enhance the possibility of personalized precision psychiatry.