Colostrum being the sole source of immunoglobulin and energy plays an essential role for piglet survival and growth. Studies have shown that colostrum and milk intake also influence the gut development and maturation of piglets. The early life colonization and development of the gut microbiota primes the development of the adult microbiome and has long-term impact on the health of the pigs. Growing number of evidences suggest that certain microbial species can exert beneficial effect on the sow and piglets, and thus improve production performances like colostrum yield, colostrum quality, sow physiology around farrowing, piglet weight gain, and health during lactation and weaning. The gut microbiota of pig which is unique at suckling stage, largely acquired from the mother, shifts over time. Multiple factors like age, environment, production system, diet can influence the gut microbiota of sow and piglets. The improvement of the sow and piglets microbiota toward beneficial bacteria can also be done by probiotic, prebiotic, and different feed additive applications.