In conclusion, this study, through SMR analysis based on aggregated data, identified multiple circadian rhythm-related genes (such as HSF1) that may have a potential causal relationship with T2DM. Here, HSF1 is linked to type 2 diabetes mellitus.