Viral infections in pregnancy are major causes of maternal and fetal morbidity and mortality. Infections can develop in the neonate transplacentally, perinatally, or postnatally (from breast milk or other sources) and lead to different clinical manifestations, depending on the viral agent and the gestational age at exposure. Viewing the peculiar tolerogenic status which characterizes pregnancy, viruses could exploit this peculiar immunological status to spread or affect the maternal immune system, adopting several evasion strategies. In fact, both DNA and RNA virus might have a deep impact on both innate and acquired immune systems. For this reason, investigating the interaction with these pathogens and the host’s immune system during pregnancy is crucial not only for the development of most effective therapies and diagnosis but mostly for prevention. In this review, we will analyze some of the most important DNA and RNA viruses related to gestational infections.