As an invisible organ of human body, the gut microbiota plays an important role in human life and has become a hot spot in the field of life science in recent years. Due to the increasing pressure of work and life, people are prone to depression. The in-depth mechanism studies indicated that the gut microbiota could improve the depression symptom through the gut-brain axis (GBA). As unique plant polysaccharides, dietary fiber can effectively modulate the intestinal flora disorders and its crucial role in orchestrating host-microbiota crosstalk has been confirmed. This review highlights the mechanisms that the gut microbiota affects the development of depression through GBA and focuses on dietary fiber intervention on the improvement of intestinal microbiota imbalance, which may provide new ideas for the prevention and treatment of depression.