The intestinal tract of humans harbors a dynamic and complex bacterial community known as the gut microbiota, which plays a crucial role in regulating functions such as metabolism and immunity in the human body. Numerous studies conducted in recent decades have also highlighted the significant potential of the gut microbiota in promoting human health. It is widely recognized that training and nutrition strategies are pivotal factors that allow athletes to achieve optimal performance. Consequently, there has been an increasing focus on whether training and dietary patterns influence sports performance through their impact on the gut microbiota. In this review, we aim to present the concept and primary functions of the gut microbiota, explore the relationship between exercise and the gut microbiota, and specifically examine the popular dietary patterns associated with athletes’ sports performance while considering their interaction with the gut microbiota. Finally, we discuss the potential mechanisms by which dietary patterns affect sports performance from a nutritional perspective, aiming to elucidate the intricate interplay among dietary patterns, the gut microbiota, and sports performance. We have found that the precise application of specific dietary patterns (ketogenic diet, plant-based diet, high-protein diet, Mediterranean diet, and high intake of carbohydrate) can improve vascular function and reduce the risk of illness in health promotion, etc., as well as promoting recovery and controlling weight with regard to improving sports performance, etc. In conclusion, although it can be inferred that certain aspects of an athlete’s ability may benefit from specific dietary patterns mediated by the gut microbiota to some extent, further high-quality clinical studies are warranted to substantiate these claims and elucidate the underlying mechanisms.