Muscle cramps occur frequently in diabetes and are correlated with diabetic retinopathy and albumin. Patients with PDR exhibited a higher frequency, severity, and longer duration relative to those with NPDR or without DR. Our findings suggested that muscle cramps in individuals with T2DM might be a result of microvascular dysfunction. Modulation of microvascular perfusion might thus provide a therapeutic target for alleviating muscle cramps.