The feeding mode is an important factor affecting the reproductive performance of pigs. The composition and expression of the intestinal microbiota are closely related to the physiological and biochemical indicators of animals. Therefore, to explore the impact of different feeding patterns on the reproductive performance of pigs, this study collected reproductive performance data from 1607 Yorkshire pigs raised under different feeding patterns and conducted a fixed-effect variance analysis. Among them, 731 were in the artificial feeding (AM) group and 876 were in the feeding station feeding (SM) group. Additionally, 40 Yorkshire sows in the late gestation period were randomly selected from each feeding mode for intestinal microbiota analysis. The results of the analysis showed that, in the AM group, both the number of birth deformities (NBD) and the number of stillbirths (NSB) were significantly greater than they were in the SM group (p < 0.05). Additionally, the total number born (TNB) in the AM group was significantly lower than that in the SM group (p < 0.05). The results of the intestinal microbiota analysis revealed that at the phylum level, there were significant differences in nine bacterial taxa between the AM and SM groups (p < 0.05). At the genus level, the abundance of a variety of beneficial bacteria related to reproductive performance in the SM group was significantly greater than that in the AM group. Finally, fecal metabolomic analysis revealed that the contents of butyric acid, isovaleric acid, valeric acid, and isobutyric acid, which are associated with reproductive performance, in the feces of sows in the SM group were significantly higher than those in the AM group (p < 0.05). These results indicate that different feeding methods can affect the gut microbiota composition of Yorkshire pigs and further influence the reproductive performance of pigs through the gut microbiota-metabolic product pathway. The results of this study provide valuable insights for further exploring the relationships between feeding modes, intestinal microbial composition, and host phenotypes.