Background & aim Worldwide, measures are being implemented to eradicate hepatitis B (HBV) and C (HCV) viruses, which can be transmitted from the mother during childbirth. This study aims to determine the prevalence of HBV and HCV in pregnant women in Spain, focusing on country of origin, epidemiological factors and risk of vertical transmission (VT). Methodology Multicentre open-cohort study performed during 2015. HBV prevalence was determined in 21870 pregnant women and HCV prevalence in 7659 pregnant women. Epidemiological and risk factors for VT were analysed in positive women and differences between HBV and HCV cases were studied. Results HBV prevalence was 0.42% (91/21870) and HCV prevalence was 0.26% (20/7659). Of the women with HBV, 65.7% (44/67) were migrants. The HBV transmission route to the mother was unknown in 40.3% of cases (27/67) and VT in 31.3% (21/67). Among risk factors for VT, 67.7% (42/62) of the women had viraemia and 14.5% (9/62) tested HBeAg-positive. All