Diabetes can be hereditary and genetic factors are known to influence the onset of diabetes. Diabetes is a metabolic disease characterized by chronic hyperglycemia, including type 1 diabetes, type 2 diabetes, gestational diabetes and special types of diabetes. Diabetes mellitus is generally caused by a combination of genetic, environmental and other factors, the etiology and pathogenesis is extremely complex, so far has not been fully elucidated. Considering that there is a certain relationship with genetic factors, for example, the homozygosity rate of type 1 diabetes in identical twins can reach 30%~40%, and the homozygosity rate of type 2 diabetes in identical twins is close to 100%, which indicates that the genetic factors will affect the onset of diabetes. Patients with genetic factors and abnormal blood glucose values are advised to seek medical attention.