The goal of this study was to characterize the fecal microbiota profiles of gestating sows, along with the fecal microbiota and milk fatty acid contents of lactating sows and their correlations with reproductive performance at different parities. The results showed that the microbiota of third parity gestating sows contained a greater abundance of Prevotella compared to the other two parity groups, while lactating sows exhibiting higher reproductive performance at fifth parity exhibited a greater abundance of Lactobacillus species. The lactating sows with higher reproductive performance also exhibited higher total monounsaturated fatty acid (MUFA) and higher total polyunsaturated fatty acid (PUFA) levels relative to sows with lower reproductive performance at all three analyzed parities, especially sows at fifth parity produced the lowest total saturated fatty acid (SFA) levels, and showed the highest C18:1n9c and C18:2n6c concentrations. In correlational analyses, the abundance of Oligella, Lactobacillus, and Corynebacterium was highly positively correlated with C18:1n9c, C18:2n6c, and C20:4n6. Overall, these results provide a rational basis for efforts to improve sow reproductive performance through the provision of precisely regulated nutrition. KEY POINTS: • Clear differences in the fecal microbiota were evident between sows of different parities. • Lactating sows with high reproductive performance showed distinct milk fatty acid profiles.