The microbiome inherited at birth exerts marked effects on immune programming with long-term health consequences. Here, we demonstrated that the gut, vaginal, and oral microbial diversity of pregnant women with SARS-CoV-2 infection is reduced, and women with early infections exhibit a different vaginal microbiota composition compared to healthy controls at the time of delivery. Accordingly, infants born to pregnant women with early SARS-CoV-2 infection exhibit a unique oral microbiota dominated by Streptococcus species. Together, we demonstrated that SARS-CoV-2 infections during pregnancy, particularly early infections, are associated with lasting changes in the microbiome of pregnant women compromising the initial microbial seed of their infant. Our results highlight the importance of further exploring the impact of SARS-CoV-2 on the infant's microbiome-dependent immune programming.