Slower epigenetic aging is associated with exposure to green space (greenness); however, the longitudinal relationship has not been well studied, particularly in minority groups. We investigated the association between 20-year exposure to greenness [Normalized Difference Vegetation Index (NDVI)] and epigenetic aging in a large, biracial (Black/white), U.S. urban cohort. Using generalized estimating equations adjusted for individual and neighborhood socioeconomic characteristics, greater greenness was associated with slower epigenetic aging. Black participants had less surrounding greenness and an attenuated association between greenness and epigenetic aging [βNDVI5km: -0.80, 95% confidence interval (CI): -4.75, 3.13 versus βNDVI5km: -3.03, 95% CI: -5.63, -0.43 in white participants]. Participants in disadvantaged neighborhoods showed a stronger association between greenness and epigenetic aging (βNDVI5km: -3.36, 95% CI: -6.65, -0.08 versus βNDVI5km: -1.57, 95% CI: -4.12, 0.96 in less disadvantaged). In conclusion, we found a relationship between greenness and slower epigenetic aging, and different associations by social determinants of health such as race and neighborhood socioeconomic status.