The glycemic control of diabetes patients is influenced by a variety of risk factors, some of which are adjustable and others of which are not. Diabetes and sleep quality are most frequently correlated in both directions. To evaluate the quality of sleep and pinpoint the risk factors for inadequate glycemic control in individuals with diabetes. : This cross-sectional study included seventy consecutive patients who met the inclusion criteria. The Pittsburgh Sleep Quality Index (PSQI) scale was used to evaluate the quality of sleep. Siemens- ID 29984, dimension RxL Max, Architect plus ABBOT (ci 4100), completely automatic seven-part cell-counter by Horiba Pentra Dx and Siemens ADVIA Centaur XPT (Immonoassay system) were utilized for the biochemical tests.: Of the 70 participants in the study, 22 patients [31.4%] reported having good sleep quality, while 15 patients [21.4%] had average sleep quality and 33 patients [47.1%] had poor sleep quality. Patients with managed and uncontrolled blood sugar showed varying degrees of sleep quality; 48.4% and 17.9% showed good sleep quality, 29% and 15.4% showed moderate sleep quality, and 22.6% and 66.7% showed poor sleep quality. A statistically significant difference (p<0.001) was seen in the sleep quality of the two groups. : In summary, the results of our study suggested that diabetics with poor sleep quality are more likely to have poor glycemic control. A significant modifiable risk factor for improved glycemic management in diabetic patients is sleep quality.