Fecal, colostrum, and vaginal samples were collected from Ningxiang sows and their piglets during lactation and nursery periods. These samples were subjected to 399S rRNA gene sequencing and metagenomic analyses to investigate the microbiome relationships between sows and their offspring.