Infections caused by extended-spectrum β-lactamase-producing Enterobacteriaceae (ESBL-E) have become increasingly prevalent, posing a serious public threat worldwide. It is commonly believed that untreated urinary tract infections (UTI) and asymptomatic bacteriuria (ABU) during pregnancy are associated with poor obstetric outcomes. Currently, there is a paucity of data regarding the outcomes or risk factors of such ESBL-E infections in pregnant women. We conducted a retrospective 1:2 matched case–control study of hospitalised pregnant women with ESBL-E- vs. non-ESBL-producing Enterobacteriaceae-positive urine cultures obtained between 2004 and 2015, and compared risk factors for the development of resistant bacteria, clinical course and outcomes. In total, 87 pregnant women with ESBL-E-positive urine cultures were matched to 174 controls by decade of age, ethnicity and pregnancy trimester. Significant risk factors for acquisition of ESBL-E included prior UTI/ABU episodes (50.6% vs. 26.3%, P < 0.001), previous isolation of ESBL-E in urine cultures (12.6% vs. 0.6%, P < 0.001) and prior antibiotic exposure (71.3% vs. 54%, P = 0.002). Previous hospitalisation, however, was not found to be a risk factor. No significant difference was found in adverse obstetric outcomes. We conclude that prior urinary infections and antibiotic exposure were significant risk factors for the isolation of ESBL-E pathogens from the urine of pregnant women; however, this was not associated with worse obstetric outcomes compared with non-ESBL-E pathogens.