Chronic kidney disease (CKD) is a common complication of diabetes mellitus and the most common cause of end-stage renal disease (ESRD). In recent years, the prevalence of diabetes had continued to increase throughout the world. The number of patients with CKD will also increase. Appropriate glycemic control in patients with diabetes to prevent ESRD and other complications, as well as diabetes care in ESRD patients are very important. The treatment of diabetes in ESRD patients is challenging. The changes in glucose homeostasis, the unclear accuracy of glycemic control metrics, and changes in pharmacokinetics of glucose lowering agents in patients with renal insufficiency are the main causes. I will be further described in this article.