Analyzing and quantifying the spatiotemporal response of vegetation to drought across different time scales are crucial for ecological restoration and disaster prevention. In this study, the standardized precipitation evaporation index (SPEI) was calculated using meteorological observations from 85 stations in Shaanxi Province from 2000 to 2020. By combining SPEI with the normalized difference vegetation index (NDVI), trend analysis, partial correlation analysis, and ridge regression analysiswere employed to investigate the spatiotemporal variations of SPEI and NDVI, examine the correlation between them, and quantify the relative contribution of seasonal SPEI to annual NDVI changes. From 2000 to 2020, the drought frequency in Shaanxi Province was highest in spring (42.6%), followed by summer (29.7%), autumn (21.6%), and winter (21.9%). Northern Shaanxi had the highest drought level (29.6%), followed by southern Shaanxi (28.7%) and central Shaanxi (27.9%). Approximately 89.7% of Shaanxi Province exhibited an increasing humidity trend, which was most pronounced in spring, followed by summer, autumn, and winter. The average NDVIs for southern Shaanxi, central Shaanxi, and northern Shaanxi were 0.89, 0.77 and 0.57, respectively, and approximately 88.0% of Shaanxi Province displayed significant vegetation improvements. Approximately 53.2% of Shaanxi Province exhibited no significant positive correlation between SPEI and NDVI, whereas a significant positive correlationwas only observed in 6.9% of the province, mainly concentrated in northern Shaanxi. Non-significant negative correlations were primarily recorded in central Shaanxi. The areas where the relative impactof SPEI in spring, summer, autumn, and winter on annual NDVI changes exceeded 50% accounted for 31.1%, 23.7%, 0.5%, and 15.3% of the province, respectively.