BackgroundThe mortality of type 2 diabetes mellitus (T2DM) can be affected by environmental factors. However, few studies have explored the effects of environmental factors across diverse regions over time. Given the vulnerability observed in the elderly group in previous research, this research applied Bayesian spatiotemporal models to assess the associations in the elderly group. MethodsData on T2DM death in the elderly group (aged over 60 years old) at the county level were collected from the National Death Surveillance System between 1st January 2013 and 31st December 2019 in Shandong Province, China. A Bayesian spatiotemporal model was employed with the integrated Nested Laplace Approach to explore the associations between socio-environmental factors (i.e., temperatures, relative humidity, the Normalized Difference Vegetation Index (NDVI), particulate matter with a diameter of 2.5 μm or less (PM2.5) and gross domestic product (GDP)) and T2DM mortality. ResultsT2DM mortality in the elderly group was found to be associated with temperature and relative humidity (i.e., temperature: Relative Risk (RR) = 1.41, 95% Credible Interval (CI): 1.27–1.56; relative humidity: RR = 1.05, 95% CI:1.03–1.06), while no significant associations were found with NDVI, PM2.5 and GDP. In winter, significant impacts from temperature (RR = 1.18, 95% CI: 1.06–1.32) and relative humidity (RR = 0.94, 95% CI: 0.89–0.99) were found. Structured and unstructured spatial effects, temporal trends and space-time interactions were considered in the model. ConclusionsHigher mean temperatures and relative humidities increased the risk of elderly T2DM mortality in Shandong Province. However, a higher humidity level decreased the T2DM mortality risk in winter in Shandong Province. This research indicated that the spatiotemporal method could be a useful tool to assess the impact of socio-environmental factors on health by combining the spatial and temporal effects.