Diabetes and the liver have a great relationship. The liver is an important organ of glucose metabolism, the liver can take up and use glucose to lower blood sugar and can convert glucose into liver glycogen for storage. Hepatic glycogen decomposition and gluconeogenesis can in turn raise blood glucose. If a patient has cirrhosis, liver function is obviously impaired and the number of hepatocytes is reduced, it will affect the uptake and utilization of glucose by the liver, and glycogen decomposition and gluconeogenesis increase. Patients with cirrhosis have increased insulin resistance, all of which can affect glucose metabolism and cause hepatogenic diabetes. Glycemic control is more difficult in hepatogenic diabetes, with high blood glucose fluctuations, more elevated postprandial blood glucose, and low fasting blood glucose. Diabetes can also affect the liver, especially in type 2 diabetics, who are prone to nonalcoholic fatty liver as well as developing liver function impairment.