A total of one in ten infants is born preterm in the U.S. with large racial disparities. Recent data suggest that neighborhood exposures may play a role. Walkability—how easily individuals can walk to amenities–may encourage physical activity. We hypothesized that walkability would be associated with a decreased risk of preterm birth (PTB) and that associations would vary by PTB phenotype. PTB can be spontaneous (sPTB) from conditions such as preterm labor and preterm premature rupture of membranes, or medically indicated (mPTB) from conditions such as poor fetal growth and preeclampsia. We analyzed associations of neighborhood walkability (quantified by their Walk Score®ranking) with sPTB and mPTB in a Philadelphia birth cohort (n = 19,203). Given racial residential segregation, we also examined associations in race-stratified models. Walkability (per 10 points of Walk Score ranking) was associated with decreased odds of mPTB (aOR 0.90, 95% CI: 0.83, 0.98), but not sPTB (aOR 1.04, 95% CI: 0.97, 1.12). Walkability was not protective for mPTB for all patients; there was a non-significant protective effect for White (aOR 0.87, 95% CI: 0.75, 1.01), but not Black patients (aOR 1.05, 95% CI: 0.92, 1.21) (interactionp= 0.03). Measuring health effects of neighborhood characteristics across populations is key for urban planning efforts focused on health equity.