Numerous studies have demonstrated the pivotal roles of intestinal microbiota in many physiopathological processes through complex interactions with the host. As a unique period in a woman's lifespan, pregnancy is characterized by changes in hormones, immunity, and metabolism. The gut microbiota also changes during this period and plays a crucial role in maintaining a healthy pregnancy. Consequently, anomalies in the composition and function of the gut microbiota, namely, gut microbiota dysbiosis, can predispose individuals to various pregnancy complications, posing substantial risks to both maternal and neonatal health. However, there are still many controversies in this field, such as “sterile womb” versus “in utero colonization.” Therefore, a thorough understanding of the roles and mechanisms of gut microbiota in pregnancy and its complications is essential to safeguard the health of both mother and child. This review provides a comprehensive overview of the changes in gut microbiota during pregnancy, its abnormalities in common pregnancy complications, and potential etiological implications. It also explores the potential of gut microbiota in diagnosing and treating pregnancy complications and examines the possibility of gut‐derived bacteria residing in the uterus/placenta. Our aim is to expand knowledge in maternal and infant health from the gut microbiota perspective, aiding in developing new preventive and therapeutic strategies for pregnancy complications based on intestinal microecology.