Sodium-glucose cotransporter-2 inhibitors (SGLT2is) are widely used in cardiology and are effective in treating acute coronary syndrome (ACS). Their effects on unstable plaque in patients with ACS remains unclear. This study aimed to examine the effectiveness of SGLT2is in coronary plaque based on optical coherence tomography (OCT) images and the prognosis of ACS with type 2 diabetes mellitus. This retrospective study included 109 patients in the total cohort and 29 patients in the OCT cohort. Based on SGLT2i administration after ACS, the total cohort was categorized into non-SGLT2i (n = 69) and SGLT2i (n = 40) groups. The OCT cohort had 15 and 14 patients in the non-SGLT2i and SGLT2i groups, respectively. The OCT images of unstable plaque were analyzed in nonstented lesions during ACS catheterization and at the 6-month follow-up. The total cohort was assessed after 1 year for major adverse cardiovascular events, including all-cause mortality, revascularization, cerebrovascular disease, and heart failure hospitalization. SGLT2is improved unstable lesions with a significantly thicker fibrous cap (48 ± 15 μm vs 26 ± 24 μm, p = 0.005), reduced lipid arc (-29 ± 12° vs -18 ± 14°, p = 0.028), higher % decrease in total lipid arc (-35 ± 13% vs -19 ± 18%, p = 0.01), and lower major adverse cardiovascular event incidence (log-rank p = 0.023, hazard ratio 4.72 [1.08 to 20.63]) and revascularization rate (adjusted hazard ratio 6.77 [1.08 to 42.52]) than the non-SGLT2i group. In conclusion, SGLT2is can improve the markers of plaque stability and may improve the prognosis in patients with type 2 diabetes mellitus.