BackgroundPregnancy is a critical time for women, making them more susceptible to infectious diseases like COVID-19. This study aims to determine the immunogenicity of COVID-19 in pregnant women who have been infected compared to those who have received the inactive COVID-19 vaccine.Materials and methodsIn this retrospective cohort study, pregnant women who received the inactivated COVID-19 vaccine (Sinopharm) and those with a history of COVID-19 infection during pregnancy were studied. Participants who had experienced stillbirth, received different COVID-19 vaccines, or had intrauterine fetal death were excluded from the study. Overall, the study included 140 participants. The participants were divided into two groups of 70 participants - pregnant women who received the Sinopharm vaccine and pregnant women who had COVID-19 infection during pregnancy. Before delivery, blood samples were collected from all mothers to evaluate the maternal immunoglobulin G (IgG) level. Blood samples were also taken from the baby’s umbilical cord during delivery to measure the newborn’s IgG level. Additionally, blood samples were collected from babies whose mothers showed signs of acute infection to measure their IgM levels and evaluate vertical transmission.FindingsThe study found a significant relationship between the mean level of maternal IgG and umbilical cord IgG within the groups (P < 0.001). The highest levels of maternal IgG (2.50 ± 2.17) and umbilical cord IgG (2.43 ± 2.09) were observed in pregnant women with a previous COVID-19 infection and no history of vaccination (P < 0.001). Only one baby was born with a positive IgM, and this baby was born to a mother who showed signs of COVID-19 infection in the last five days of pregnancy. The mother was 28 years old, with a BMI of 33; it was her first pregnancy, and she gave birth to a male newborn at term.ConclusionAdministering an inactivated vaccine during pregnancy can generate immunity in both the mother and the child. However, the vaccine’s immunity level may not be as potent as that conferred by COVID-19 infection during pregnancy. Nonetheless, the risk of vertical transmission of COVID-19 is considered minimal and can be classified as negligible.