BackgroundObservational studies have reported an inverse association of type 2 diabetes (T2D) with thoracic aortic aneurysm (TAA). However, the causality of the association has not been established yet. The present study aims to clarify the causal relationship between T2D and TAA via a Mendelian randomization (MR) approach.MethodsCausality of associations were assessed using a two-sample MR framework. Genome-wide association study (GWAS) summary statistics were obtained for T2D, glycated hemoglobin (HbA1c), fasting glucose (FG) and fasting insulin (FI) as exposures, and TAA, ascending aortic diameter (AAoD) and descending aortic diameter (DAoD) as outcomes. Four different methods (inverse variance weighted [IVW], weight median, MR-Egger and MR-PRESSO) were used to calculate causal estimates. Heterogeneity and horizontal pleiotropy were assessed using Cochran Q test and MR-Egger regression intercept, respectively.ResultsGenetically predicted T2D was inversely associated with the risk of TAA (OR: 0.931, 95% CI 0.870 to 0.997, p = 0.040, IVW method) and AAoD (Beta: -0.065, 95%CI −0.099 to  − 0.031, p = 1.7e−04, IVW method), but not with DAoD (p > 0.05). Genetically predicted FG level was inversely associated with AAoD (Beta: −0.273, 95% CI −0.396 to –0.150, p = 1.41e−05, IVW method) and DAoD (Beta: −0.166, 95% CI −0.281 to −0.051, p = 0.005, IVW method), but not with TAA (p > 0.05). The effect of genetically predicted HbA1c and FI on TAA, AAoD and DAoD did not reach statistical significance (p > 0.05).ConclusionsGenetic predisposition to T2D decreases the risk of TAA. Genetically predicted T2D is inversely associated with AAoD, but not with DAoD. Genetically predicted FG level was inversely associated with AAoD and DAoD.Supplementary InformationThe online version contains supplementary material available at 10.1186/s13098-023-01101-1.