The rapid socio-economic development and urbanization in China have led to a decline in air quality. Therefore, the spatial and temporal distribution patterns of urban air pollution, as well as its formation mechanisms and influencing factors, have become important areas of research in atmospheric environment studies. This paper focuses on nine monitoring sites in Nanjing, where concentration data for six air pollutants and vegetation index data were collected from 2013 to 2021. The objective of this study is to investigate the changes in air pollutants and vegetation index over time and space, as well as their relationship with each other, and to assess the social and environmental impacts of air pollution. The findings reveal a spatial distribution pattern of air pollution in Nanjing that exhibits significant variability, with pollutant concentrations decreasing from the city center towards the surrounding areas. Notably, the main urban area has lower air quality compared to the peripheral regions. The results obtained from best-fit linear regression models and correlation heatmaps demonstrate a strong correlation (coefficient of determination, R2 > 0.5) between the normalized difference vegetation index (NDVI) and pollutants such as SO2, NO2, PM2.5, PM10, and O3 within a radial distance of 2 km from the air pollutant monitoring sites. These findings indicate that NDVI can be an effective indicator for assessing the distribution and concentrations of air pollutants. Negative correlations between NDVI and socio-economic indicators are observed under relatively consistent natural conditions, including climate and terrain. Therefore, the spatiotemporal distribution patterns of NDVI can provide valuable insights not only into socio-economic growth but also into the levels and locations of air pollution concentrations.