Background Despite the widespread use, only sparse information is available on the safety of gabapentin during pregnancy. We sought to evaluate the association between gabapentin exposure during pregnancy and risk of adverse neonatal and maternal outcomes. Methods and findings Using the United States Medicaid Analytic eXtract (MAX) dataset, we conducted a population-based study of 1,753,865 Medicaid-eligible pregnancies between January 2000 and December 2013. We examined the risk of major congenital malformations and cardiac defects associated with gabapentin exposure during the first trimester (T1), and the risk of preeclampsia (PE), preterm birth (PTB), small for gestational age (SGA), and neonatal intensive care unit admission (NICUa) associated with gabapentin exposure early, late, or both early and late in pregnancy. Gabapentin-unexposed pregnancies served as the reference. We estimated relative risks (RRs) and 95% confidence intervals (CIs) using fine stratification on the propensity score (PS) to control for over 70 confounders (e.g., maternal age, race/ethnicity, indications for gabapentin, other pain conditions, hypertension, diabetes, use of opioids, and specific morphine equivalents). We identified 4,642 pregnancies exposed in T1 (mean age = 28 years; 69% white), 3,745 exposed in early pregnancy only (28 years; 67% white), 556 exposed in late pregnancy only (27 years; 60% white), and 1,275 exposed in both early and late pregnancy (29 years; 75% white). The reference group consisted of 1,744,447 unexposed pregnancies (24 years; 40% white). The adjusted RR for major malformations was 1.07 (95% CI 0.94-1.21, p = 0.33) and for cardiac defects 1.12 (0.89-1.40, p = 0.35). Requiring �2 gabapentin dispensings moved the RR to 1.40 (1.03-1.90, p = 0.03) for cardiac defects. There was a higher risk of preterm birth among women exposed to