BackgroundHand, foot and mouth disease (HFMD) caused by a variety of enteroviruses remains a major public health problem in China. Previous studies have found that social factors may contribute to the inconsistency of the relationship patterns between meteorological factors and HFMD, but the conclusions are inconsistent. The influence of social factors on the association between meteorology and HFMD is still less well understood. We aimed to analyze whether social factors affected the effect of meteorological factors on HFMD in Sichuan Province.MethodWe collected daily data on HFMD, meteorological factors and social factors in Sichuan Province from 2011 to 2017. First, we used a Bayesian spatiotemporal model combined with a distributed lag nonlinear model to evaluate the exposure-lag-response association between meteorological factors and HFMD. Second, by constructing the interaction of meteorological factors and social factors in the above model, the changes in the relative risk (RR) under different levels of social factors were evaluated.ResultsThe cumulative exposure curves for average temperature, relative humidity, and HFMD were shaped like an inverted “V” and a “U” shape. As the average temperature increased, the RR increased and peaked at 19 °C (RR 1.020 [95% confidence interval CI 1.004–1.050]). The urbanization rate, per capita gross domestic product (GDP), population density, birth rate, number of beds in health care centers and number of kindergartens interacted with relative humidity. With the increase in social factors, the correlation curve between relative humidity and HFMD changed from an “S” shape to a “U” shape.ConclusionsRelative humidity and average temperature increased the risk of HFMD within a certain range, and social factors enhanced the impact of high relative humidity. These results could provide insights into the combined role of environmental factors in HFMD and useful information for regional interventions.Supplementary InformationThe online version contains supplementary material available at 10.1186/s12889-023-15699-4.