ObjectivesGlucose fluctuations are more harmful than persistent hyperglycemia for chronic complications of diabetes. However, the relationship between cognition and glucose fluctuations in patients with acute ischemic stroke (AIS) complicated by type 2 diabetes mellitus (T2DM) remains unclear. We aimed to evaluate the association between short-term glucose fluctuations and cognition in patients with AIS complicated by T2DM. DesignA cohort study with a 2-year follow-up. Setting and participantsWe included 554 patients with mild AIS (mean age: 62 years; 170 females and 384 males). MeasurementsGlucose variability (GV) was evaluated using glycated hemoglobin (HbA1c), stress hyperglycemia (SHR), standard deviation of blood glucose (SDBG), mean postprandial blood glucose (MPBG), mean amplitude of glycemic excursion (MAGE), and time in range (TIR). We evaluated the relationship between GV, fasting blood glucose (FBG) and cognition during the acute phase using linear regression analysis. We evaluated the relationship between GV, FBG and the occurrence of post-stroke cognitive impairment (PSCI) using a logistic regression model. Mediation analyses were fitted to explore whether the relationships of HbA1c with cognition were mediated by cerebral small vessel disease (CSVD). ResultsA clear pattern of age-related GV was observed. Higher SHR in middle-aged participants; higher HbA1c, and lower TIR in older participants; and higher MAGE, MPBG, and SDBG across a broad age range (50–80 years) were associated with cognitive impairment in the acute phase of AIS. Higher SHR and SDBG together with lower TIR in middle-aged participants, higher HbA1c in older participants, and higher FBG, MPBG, and MAGE across a broad age range (50–80 years) were associated with the occurrence of PSCI. The association between HbA1c and cognition was partially mediated (proportion: 7–16%) by CSVD. ConclusionsShort-term glucose fluctuations are associated with cognition and a higher risk of PSCI in patients with AIS complicated by T2DM. CSVD might play an important role in the relationship between short-term glucose fluctuations and cognition.